summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginimpl.cpp4
-rw-r--r--core/pim/today/plugins/datebook/datebookpluginimpl.cpp4
-rw-r--r--core/pim/today/plugins/mail/mailpluginimpl.cpp4
-rw-r--r--core/pim/today/plugins/todolist/todopluginimpl.cpp4
4 files changed, 12 insertions, 4 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
22AddressBookPluginImpl::AddressBookPluginImpl() { 22AddressBookPluginImpl::AddressBookPluginImpl() {
23 addressbookPlugin = new AddressBookPlugin(); 23 addressbookPlugin = new AddressBookPlugin();
24} 24}
25 25
26AddressBookPluginImpl::~AddressBookPluginImpl() { 26AddressBookPluginImpl::~AddressBookPluginImpl() {
27 delete addressbookPlugin; 27 delete addressbookPlugin;
28} 28}
29 29
30 30
31TodayPluginObject* AddressBookPluginImpl::guiPart() { 31TodayPluginObject* AddressBookPluginImpl::guiPart() {
32 return addressbookPlugin; 32 return addressbookPlugin;
33} 33}
34 34
35QRESULT AddressBookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { 35QRESULT 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
44Q_EXPORT_INTERFACE() { 46Q_EXPORT_INTERFACE() {
45 Q_CREATE_INSTANCE( AddressBookPluginImpl ); 47 Q_CREATE_INSTANCE( AddressBookPluginImpl );
46} 48}
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
20DatebookPluginImpl::DatebookPluginImpl() { 20DatebookPluginImpl::DatebookPluginImpl() {
21 datebookPlugin = new DatebookPlugin(); 21 datebookPlugin = new DatebookPlugin();
22} 22}
23 23
24DatebookPluginImpl::~DatebookPluginImpl() { 24DatebookPluginImpl::~DatebookPluginImpl() {
25 delete datebookPlugin; 25 delete datebookPlugin;
26} 26}
27 27
28TodayPluginObject* DatebookPluginImpl::guiPart() { 28TodayPluginObject* DatebookPluginImpl::guiPart() {
29 return datebookPlugin; 29 return datebookPlugin;
30} 30}
31 31
32QRESULT DatebookPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { 32QRESULT 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
41Q_EXPORT_INTERFACE() { 43Q_EXPORT_INTERFACE() {
42 Q_CREATE_INSTANCE( DatebookPluginImpl ); 44 Q_CREATE_INSTANCE( DatebookPluginImpl );
43} 45}
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
@@ -1,46 +1,48 @@
1/* 1/*
2 * mailpluginimpl.cpp 2 * mailpluginimpl.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 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}
diff --git a/core/pim/today/plugins/todolist/todopluginimpl.cpp b/core/pim/today/plugins/todolist/todopluginimpl.cpp
index c64113c..639587f 100644
--- a/core/pim/today/plugins/todolist/todopluginimpl.cpp
+++ b/core/pim/today/plugins/todolist/todopluginimpl.cpp
@@ -1,44 +1,46 @@
1/* 1/*
2 * todopluginimpl.cpp 2 * todopluginimpl.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 "todoplugin.h" 17#include "todoplugin.h"
18#include "todopluginimpl.h" 18#include "todopluginimpl.h"
19 19
20TodolistPluginImpl::TodolistPluginImpl() { 20TodolistPluginImpl::TodolistPluginImpl() {
21 todolistPlugin = new TodolistPlugin(); 21 todolistPlugin = new TodolistPlugin();
22} 22}
23 23
24TodolistPluginImpl::~TodolistPluginImpl() { 24TodolistPluginImpl::~TodolistPluginImpl() {
25 delete todolistPlugin; 25 delete todolistPlugin;
26} 26}
27 27
28 28
29TodayPluginObject* TodolistPluginImpl::guiPart() { 29TodayPluginObject* TodolistPluginImpl::guiPart() {
30 return todolistPlugin; 30 return todolistPlugin;
31} 31}
32 32
33QRESULT TodolistPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { 33QRESULT TodolistPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) {
34 *iface = 0; 34 *iface = 0;
35 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { 35 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) {
36 *iface = this, (*iface)->addRef(); 36 *iface = this, (*iface)->addRef();
37 } 37 }else
38 return QS_FALSE;
39
38 return QS_OK; 40 return QS_OK;
39 41
40} 42}
41 43
42Q_EXPORT_INTERFACE() { 44Q_EXPORT_INTERFACE() {
43 Q_CREATE_INSTANCE( TodolistPluginImpl ); 45 Q_CREATE_INSTANCE( TodolistPluginImpl );
44} 46}