00001 /* 00002 * stocktickerpluginimpl.cpp 00003 * 00004 * copyright : (c) 2002 by L.J. Potter 00005 * email : llornkcor@handhelds.org 00006 * 00007 */ 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 00017 00018 00019 #include "stocktickerplugin.h" 00020 #include "stocktickerpluginimpl.h" 00021 00022 StockTickerPluginImpl::StockTickerPluginImpl() { 00023 stocktickerPlugin = new StockTickerPlugin(); 00024 } 00025 00026 StockTickerPluginImpl::~StockTickerPluginImpl() { 00027 delete stocktickerPlugin; 00028 } 00029 00030 00031 TodayPluginObject* StockTickerPluginImpl::guiPart() { 00032 return stocktickerPlugin; 00033 } 00034 00035 QRESULT StockTickerPluginImpl::queryInterface( const QUuid & uuid, QUnknownInterface **iface ) { 00036 *iface = 0; 00037 if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) ) { 00038 *iface = this, (*iface)->addRef(); 00039 }else 00040 return QS_FALSE; 00041 00042 return QS_OK; 00043 00044 } 00045 00046 Q_EXPORT_INTERFACE() { 00047 Q_CREATE_INSTANCE( StockTickerPluginImpl ); 00048 }
1.4.2