diff options
author | Aaron Seigo <aseigo@kde.org> | 2014-12-16 10:02:48 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2014-12-16 10:02:48 +0100 |
commit | d16e1d88434e321d23257b18abcd572587a35efb (patch) | |
tree | ae9d8146745acc439799c0826fea33c3b6cbb89f /dummyresource/resourcefactory.cpp | |
parent | 8f17873f9fc8139f8c0ddcb448496b2fefbc59b1 (diff) | |
download | sink-d16e1d88434e321d23257b18abcd572587a35efb.tar.gz sink-d16e1d88434e321d23257b18abcd572587a35efb.zip |
dummy resource factory plugin
Diffstat (limited to 'dummyresource/resourcefactory.cpp')
-rw-r--r-- | dummyresource/resourcefactory.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
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 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2014 Aaron Seigo <aseigo@kde.org> | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the | ||
16 | * Free Software Foundation, Inc., | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | */ | ||
19 | |||
20 | #include "resourcefactory.h" | ||
21 | #include "facade.h" | ||
22 | |||
23 | DummyResource::DummyResource() | ||
24 | : Akonadi2::Resource() | ||
25 | { | ||
26 | |||
27 | } | ||
28 | |||
29 | DummyResourceFactory::DummyResourceFactory(QObject *parent) | ||
30 | : Akonadi2::ResourceFactory(parent) | ||
31 | { | ||
32 | |||
33 | } | ||
34 | |||
35 | Akonadi2::Resource *DummyResourceFactory::createResource() | ||
36 | { | ||
37 | return new DummyResource(); | ||
38 | } | ||
39 | |||
40 | void DummyResourceFactory::registerFacades(Akonadi2::FacadeFactory &factory) | ||
41 | { | ||
42 | factory.registerFacade<Akonadi2::Domain::Event, DummyResourceFacade>(PLUGIN_NAME); | ||
43 | } | ||
44 | |||