summaryrefslogtreecommitdiff
path: root/noncore/todayplugins/fortune/fortunepluginimpl.cpp
Unidiff
Diffstat (limited to 'noncore/todayplugins/fortune/fortunepluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/fortune/fortunepluginimpl.cpp49
1 files changed, 49 insertions, 0 deletions
diff --git a/noncore/todayplugins/fortune/fortunepluginimpl.cpp b/noncore/todayplugins/fortune/fortunepluginimpl.cpp
new file mode 100644
index 0000000..7ef24e9
--- a/dev/null
+++ b/noncore/todayplugins/fortune/fortunepluginimpl.cpp
@@ -0,0 +1,49 @@
1/*
2 * fortunepluginimpl.cpp
3 *
4 * copyright : (c) 2002 by Chris Larson
5 * email : kergoth@handhelds.org
6 *
7 */
8/***************************************************************************
9 * *
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 *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17#include "fortuneplugin.h"
18#include "fortunepluginimpl.h"
19
20FortunePluginImpl::FortunePluginImpl()
21{
22 fortunePlugin = new FortunePlugin();
23}
24
25FortunePluginImpl::~FortunePluginImpl()
26{
27}
28
29
30TodayPluginObject* FortunePluginImpl::guiPart()
31{
32 return fortunePlugin;
33}
34
35QRESULT FortunePluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface )
36{
37 *iface = 0;
38 qWarning("FortunePluginImpl::queryInterface called\n");
39 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) {
40 *iface = this, (*iface)->addRef();
41 }
42 return QS_OK;
43
44}
45
46Q_EXPORT_INTERFACE()
47{
48 Q_CREATE_INSTANCE( FortunePluginImpl );
49}