summaryrefslogtreecommitdiff
path: root/core/pim/today/plugins/mail/mailpluginimpl.cpp
Unidiff
Diffstat (limited to 'core/pim/today/plugins/mail/mailpluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/mail/mailpluginimpl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/pim/today/plugins/mail/mailpluginimpl.cpp b/core/pim/today/plugins/mail/mailpluginimpl.cpp
index bd57bc9..dfd3a64 100644
--- a/core/pim/today/plugins/mail/mailpluginimpl.cpp
+++ b/core/pim/today/plugins/mail/mailpluginimpl.cpp
@@ -15,32 +15,34 @@
15 ***************************************************************************/ 15 ***************************************************************************/
16 16
17 17
18 18
19#include "mailplugin.h" 19#include "mailplugin.h"
20#include "mailpluginimpl.h" 20#include "mailpluginimpl.h"
21 21
22MailPluginImpl::MailPluginImpl() { 22MailPluginImpl::MailPluginImpl() {
23 mailPlugin = new MailPlugin(); 23 mailPlugin = new MailPlugin();
24} 24}
25 25
26MailPluginImpl::~MailPluginImpl() { 26MailPluginImpl::~MailPluginImpl() {
27 delete mailPlugin; 27 delete mailPlugin;
28} 28}
29 29
30 30
31TodayPluginObject* MailPluginImpl::guiPart() { 31TodayPluginObject* MailPluginImpl::guiPart() {
32 return mailPlugin; 32 return mailPlugin;
33} 33}
34 34
35QRESULT MailPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { 35QRESULT MailPluginImpl::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
44Q_EXPORT_INTERFACE() { 46Q_EXPORT_INTERFACE() {
45 Q_CREATE_INSTANCE( MailPluginImpl ); 47 Q_CREATE_INSTANCE( MailPluginImpl );
46} 48}