From 9fb535b4cdd6af360e3bbc5ce914e9a2c11ba047 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 9 Jul 2015 22:36:30 +0200 Subject: Moved the dummy backend to a separate file. --- examples/dummyresource/dummystore.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 examples/dummyresource/dummystore.h (limited to 'examples/dummyresource/dummystore.h') diff --git a/examples/dummyresource/dummystore.h b/examples/dummyresource/dummystore.h new file mode 100644 index 0000000..6a404ae --- /dev/null +++ b/examples/dummyresource/dummystore.h @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2015 Christian Mollekopf + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ +#pragma once +#include + +class DummyStore +{ +public: + //TODO proper singleton + static DummyStore &instance() + { + static DummyStore instance; + return instance; + } + + QMap data() const; + +}; -- cgit v1.2.3