Diffstat (limited to 'core/pim/today/plugins/datebook/datebookpluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/plugins/datebook/datebookpluginimpl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/pim/today/plugins/datebook/datebookpluginimpl.cpp b/core/pim/today/plugins/datebook/datebookpluginimpl.cpp index 45736bb..6baffb9 100644 --- a/core/pim/today/plugins/datebook/datebookpluginimpl.cpp +++ b/core/pim/today/plugins/datebook/datebookpluginimpl.cpp | |||
@@ -1,43 +1,45 @@ | |||
1 | /* | 1 | /* |
2 | * datebookpluginimpl.cpp | 2 | * datebookpluginimpl.cpp |
3 | * | 3 | * |
4 | * copyright : (c) 2002 by Maximilian Reiß | 4 | * copyright : (c) 2002 by Maximilian Reiß |
5 | * email : harlekin@handhelds.org | 5 | * email : harlekin@handhelds.org |
6 | * | 6 | * |
7 | */ | 7 | */ |
8 | /*************************************************************************** | 8 | /*************************************************************************** |
9 | * * | 9 | * * |
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * |
11 | * it under the terms of the GNU General Public License as published by * | 11 | * it under the terms of the GNU General Public License as published by * |
12 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | #include "datebookplugin.h" | 17 | #include "datebookplugin.h" |
18 | #include "datebookpluginimpl.h" | 18 | #include "datebookpluginimpl.h" |
19 | 19 | ||
20 | DatebookPluginImpl::DatebookPluginImpl() { | 20 | DatebookPluginImpl::DatebookPluginImpl() { |
21 | datebookPlugin = new DatebookPlugin(); | 21 | datebookPlugin = new DatebookPlugin(); |
22 | } | 22 | } |
23 | 23 | ||
24 | DatebookPluginImpl::~DatebookPluginImpl() { | 24 | DatebookPluginImpl::~DatebookPluginImpl() { |
25 | delete datebookPlugin; | 25 | delete datebookPlugin; |
26 | } | 26 | } |
27 | 27 | ||
28 | TodayPluginObject* DatebookPluginImpl::guiPart() { | 28 | TodayPluginObject* DatebookPluginImpl::guiPart() { |
29 | return datebookPlugin; | 29 | return datebookPlugin; |
30 | } | 30 | } |
31 | 31 | ||
32 | QRESULT DatebookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { | 32 | QRESULT DatebookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { |
33 | *iface = 0; | 33 | *iface = 0; |
34 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { | 34 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { |
35 | *iface = this, (*iface)->addRef(); | 35 | *iface = this, (*iface)->addRef(); |
36 | } | 36 | }else |
37 | return QS_FALSE; | ||
38 | |||
37 | return QS_OK; | 39 | return QS_OK; |
38 | 40 | ||
39 | } | 41 | } |
40 | 42 | ||
41 | Q_EXPORT_INTERFACE() { | 43 | Q_EXPORT_INTERFACE() { |
42 | Q_CREATE_INSTANCE( DatebookPluginImpl ); | 44 | Q_CREATE_INSTANCE( DatebookPluginImpl ); |
43 | } | 45 | } |