Diffstat (limited to 'noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp new file mode 100644 index 0000000..9a640d4 --- a/dev/null +++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginimpl.cpp | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | * stocktickerpluginimpl.cpp | ||
3 | * | ||
4 | * copyright : (c) 2002 by L.J. Potter | ||
5 | * email : llornkcor@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 | |||
18 | |||
19 | #include "stocktickerplugin.h" | ||
20 | #include "stocktickerpluginimpl.h" | ||
21 | |||
22 | StockTickerPluginImpl::StockTickerPluginImpl() { | ||
23 | stocktickerPlugin = new StockTickerPlugin(); | ||
24 | } | ||
25 | |||
26 | StockTickerPluginImpl::~StockTickerPluginImpl() { | ||
27 | } | ||
28 | |||
29 | |||
30 | TodayPluginObject* StockTickerPluginImpl::guiPart() { | ||
31 | return stocktickerPlugin; | ||
32 | } | ||
33 | |||
34 | QRESULT StockTickerPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { | ||
35 | *iface = 0; | ||
36 | if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { | ||
37 | *iface = this, (*iface)->addRef(); | ||
38 | } | ||
39 | return QS_OK; | ||
40 | |||
41 | } | ||
42 | |||
43 | Q_EXPORT_INTERFACE() { | ||
44 | Q_CREATE_INSTANCE( StockTickerPluginImpl ); | ||
45 | } | ||