From d16e1d88434e321d23257b18abcd572587a35efb Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Tue, 16 Dec 2014 10:02:48 +0100 Subject: dummy resource factory plugin --- dummyresource/resourcefactory.h | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 dummyresource/resourcefactory.h (limited to 'dummyresource/resourcefactory.h') diff --git a/dummyresource/resourcefactory.h b/dummyresource/resourcefactory.h new file mode 100644 index 0000000..2e5708e --- /dev/null +++ b/dummyresource/resourcefactory.h @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2014 Aaron Seigo + * + * 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 "common/resource.h" + +//TODO: a little ugly to have this in two places, once here and once in Q_PLUGIN_METADATA +#define PLUGIN_NAME "org.kde.dummy" + +class DummyResource : public Akonadi2::Resource +{ +public: + DummyResource(); +}; + +class DummyResourceFactory : public Akonadi2::ResourceFactory +{ + Q_OBJECT + Q_PLUGIN_METADATA(IID "org.kde.dummy") + Q_INTERFACES(Akonadi2::ResourceFactory) + +public: + DummyResourceFactory(QObject *parent = 0); + + Akonadi2::Resource *createResource(); + void registerFacades(Akonadi2::FacadeFactory &factory); +}; + -- cgit v1.2.3