summaryrefslogtreecommitdiff
path: root/core/pim/today/plugins/addressbook/addresspluginimpl.cpp
Unidiff
Diffstat (limited to 'core/pim/today/plugins/addressbook/addresspluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginimpl.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginimpl.cpp b/core/pim/today/plugins/addressbook/addresspluginimpl.cpp
new file mode 100644
index 0000000..54e620e
--- a/dev/null
+++ b/core/pim/today/plugins/addressbook/addresspluginimpl.cpp
@@ -0,0 +1,46 @@
1/*
2 * addresspluginimpl.cpp
3 *
4 * copyright : (c) 2003 by Stefan Eilers
5 * email : eilers.stefan@epost.de
6 *
7 * This implementation was derived from the todolist plugin implementation
8 *
9 */
10/***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18
19#include "addressplugin.h"
20#include "addresspluginimpl.h"
21
22AddressBookPluginImpl::AddressBookPluginImpl() {
23 addressbookPlugin = new AddressBookPlugin();
24}
25
26AddressBookPluginImpl::~AddressBookPluginImpl() {
27 delete addressbookPlugin;
28}
29
30
31TodayPluginObject* AddressBookPluginImpl::guiPart() {
32 return addressbookPlugin;
33}
34
35QRESULT AddressBookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) {
36 *iface = 0;
37 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) {
38 *iface = this, (*iface)->addRef();
39 }
40 return QS_OK;
41
42}
43
44Q_EXPORT_INTERFACE() {
45 Q_CREATE_INSTANCE( AddressBookPluginImpl );
46}