author | eilers <eilers> | 2003-01-03 13:15:30 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-01-03 13:15:30 (UTC) |
commit | 19ee7f3b3e06fcf434dcd6a104e912b12220af3b (patch) (unidiff) | |
tree | bf813eecb39d52da95591b561e9bd1c3cc329432 /core/pim/today/plugins/addressbook/addresspluginimpl.cpp | |
parent | 54ebecbfd86a9ce6782dc55dad7ae15c73adef21 (diff) | |
download | opie-19ee7f3b3e06fcf434dcd6a104e912b12220af3b.zip opie-19ee7f3b3e06fcf434dcd6a104e912b12220af3b.tar.gz opie-19ee7f3b3e06fcf434dcd6a104e912b12220af3b.tar.bz2 |
NEW: This plugin shows the next birthdays and anniversaries for the next
n days !
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 | 46 |
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 | |||
22 | AddressBookPluginImpl::AddressBookPluginImpl() { | ||
23 | addressbookPlugin = new AddressBookPlugin(); | ||
24 | } | ||
25 | |||
26 | AddressBookPluginImpl::~AddressBookPluginImpl() { | ||
27 | delete addressbookPlugin; | ||
28 | } | ||
29 | |||
30 | |||
31 | TodayPluginObject* AddressBookPluginImpl::guiPart() { | ||
32 | return addressbookPlugin; | ||
33 | } | ||
34 | |||
35 | QRESULT 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 | |||
44 | Q_EXPORT_INTERFACE() { | ||
45 | Q_CREATE_INSTANCE( AddressBookPluginImpl ); | ||
46 | } | ||