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.cpp | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 dummyresource/resourcefactory.cpp (limited to 'dummyresource/resourcefactory.cpp') diff --git a/dummyresource/resourcefactory.cpp b/dummyresource/resourcefactory.cpp new file mode 100644 index 0000000..2d89c77 --- /dev/null +++ b/dummyresource/resourcefactory.cpp @@ -0,0 +1,44 @@ +/* + * 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. + */ + +#include "resourcefactory.h" +#include "facade.h" + +DummyResource::DummyResource() + : Akonadi2::Resource() +{ + +} + +DummyResourceFactory::DummyResourceFactory(QObject *parent) + : Akonadi2::ResourceFactory(parent) +{ + +} + +Akonadi2::Resource *DummyResourceFactory::createResource() +{ + return new DummyResource(); +} + +void DummyResourceFactory::registerFacades(Akonadi2::FacadeFactory &factory) +{ + factory.registerFacade(PLUGIN_NAME); +} + -- cgit v1.2.3