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.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginimpl.cpp b/core/pim/today/plugins/addressbook/addresspluginimpl.cpp index 54e620e..15cd805 100644 --- a/core/pim/today/plugins/addressbook/addresspluginimpl.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginimpl.cpp | |||
@@ -1,46 +1,48 @@ | |||
1 | /* | 1 | /* |
2 | * addresspluginimpl.cpp | 2 | * addresspluginimpl.cpp |
3 | * | 3 | * |
4 | * copyright : (c) 2003 by Stefan Eilers | 4 | * copyright : (c) 2003 by Stefan Eilers |
5 | * email : eilers.stefan@epost.de | 5 | * email : eilers.stefan@epost.de |
6 | * | 6 | * |
7 | * This implementation was derived from the todolist plugin implementation | 7 | * This implementation was derived from the todolist plugin implementation |
8 | * | 8 | * |
9 | */ | 9 | */ |
10 | /*************************************************************************** | 10 | /*************************************************************************** |
11 | * * | 11 | * * |
12 | * This program is free software; you can redistribute it and/or modify * | 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 * | 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 * | 14 | * the Free Software Foundation; either version 2 of the License, or * |
15 | * (at your option) any later version. * | 15 | * (at your option) any later version. * |
16 | * * | 16 | * * |
17 | ***************************************************************************/ | 17 | ***************************************************************************/ |
18 | 18 | ||
19 | #include "addressplugin.h" | 19 | #include "addressplugin.h" |
20 | #include "addresspluginimpl.h" | 20 | #include "addresspluginimpl.h" |
21 | 21 | ||
22 | AddressBookPluginImpl::AddressBookPluginImpl() { | 22 | AddressBookPluginImpl::AddressBookPluginImpl() { |
23 | addressbookPlugin = new AddressBookPlugin(); | 23 | addressbookPlugin = new AddressBookPlugin(); |
24 | } | 24 | } |
25 | 25 | ||
26 | AddressBookPluginImpl::~AddressBookPluginImpl() { | 26 | AddressBookPluginImpl::~AddressBookPluginImpl() { |
27 | delete addressbookPlugin; | 27 | delete addressbookPlugin; |
28 | } | 28 | } |
29 | 29 | ||
30 | 30 | ||
31 | TodayPluginObject* AddressBookPluginImpl::guiPart() { | 31 | TodayPluginObject* AddressBookPluginImpl::guiPart() { |
32 | return addressbookPlugin; | 32 | return addressbookPlugin; |
33 | } | 33 | } |
34 | 34 | ||
35 | QRESULT AddressBookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { | 35 | QRESULT AddressBookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { |
36 | *iface = 0; | 36 | *iface = 0; |
37 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { | 37 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { |
38 | *iface = this, (*iface)->addRef(); | 38 | *iface = this, (*iface)->addRef(); |
39 | } | 39 | }else |
40 | return QS_FALSE; | ||
41 | |||
40 | return QS_OK; | 42 | return QS_OK; |
41 | 43 | ||
42 | } | 44 | } |
43 | 45 | ||
44 | Q_EXPORT_INTERFACE() { | 46 | Q_EXPORT_INTERFACE() { |
45 | Q_CREATE_INSTANCE( AddressBookPluginImpl ); | 47 | Q_CREATE_INSTANCE( AddressBookPluginImpl ); |
46 | } | 48 | } |