Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

fortunepluginimpl.cpp

Go to the documentation of this file.
00001 /*
00002  * fortunepluginimpl.cpp
00003  *
00004  * copyright   : (c) 2002 by Chris Larson
00005  * email       : kergoth@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 #include "fortuneplugin.h"
00018 #include "fortunepluginimpl.h"
00019 
00020 FortunePluginImpl::FortunePluginImpl()
00021 {
00022         fortunePlugin  = new FortunePlugin();
00023 }
00024 
00025 FortunePluginImpl::~FortunePluginImpl()
00026 {
00027         delete fortunePlugin;
00028 }
00029 
00030 
00031 TodayPluginObject* FortunePluginImpl::guiPart()
00032 {
00033         return fortunePlugin;
00034 }
00035 
00036 QRESULT FortunePluginImpl::queryInterface( const QUuid & uuid,  QUnknownInterface **iface )
00037 {
00038         *iface = 0;
00039         if ( ( uuid == IID_QUnknown ) || ( uuid == IID_TodayPluginInterface ) )  {
00040                 *iface = this, (*iface)->addRef();
00041         }else
00042             return QS_FALSE;
00043             
00044         return QS_OK;
00045 
00046 }
00047 
00048 Q_EXPORT_INTERFACE()
00049 {
00050         Q_CREATE_INSTANCE( FortunePluginImpl );
00051 }

Generated on Sat Nov 5 16:18:00 2005 for OPIE by  doxygen 1.4.2