21 #include <tdeaboutdata.h> 22 #include <kgenericfactory.h> 23 #include <tdeparts/componentfactory.h> 26 #include "summarywidget.h" 28 #include "weather_plugin.h" 30 typedef KGenericFactory< WeatherPlugin, Kontact::Core > WeatherPluginFactory; 31 K_EXPORT_COMPONENT_FACTORY( libkontact_weatherplugin, 32 WeatherPluginFactory( "kontact_weatherplugin" ) ) 34 WeatherPlugin::WeatherPlugin( Kontact::Core *core, const char *name, const TQStringList& ) 35 : Kontact::Plugin( core, TQT_TQOBJECT(core), name ), mAboutData( 0 ) 37 setInstance( WeatherPluginFactory::instance() ); 40 WeatherPlugin::~WeatherPlugin() 44 Kontact::Summary *WeatherPlugin::createSummaryWidget( TQWidget *parentWidget ) 46 return new SummaryWidget( parentWidget ); 49 const TDEAboutData *WeatherPlugin::aboutData() 52 mAboutData = new TDEAboutData( "weatherplugin", I18N_NOOP( "Weather Information" ), 54 I18N_NOOP( "Weather Information" ), 55 TDEAboutData::License_GPL_V2, 56 "(c) 2003 The Kontact developers" ); 57 mAboutData->addAuthor( "Ian Reinhart Geiser", "", "geiseri@kde.org" ); 58 mAboutData->addAuthor( "Tobias Koenig", "", "tokoe@kde.org" ); 59 mAboutData->addCredit( "John Ratke", 60 I18N_NOOP( "Improvements and more code cleanups" ), 61 "jratke@comcast.net" );
Summary widget for display in the Summary View plugin.
|