21 #include <kaboutdata.h>
22 #include <kgenericfactory.h>
23 #include <kparts/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 Kontact::Summary *WeatherPlugin::createSummaryWidget( TQWidget *parentWidget )
42 return new SummaryWidget( parentWidget );
45 const KAboutData *WeatherPlugin::aboutData()
48 mAboutData = new KAboutData( "weatherplugin", I18N_NOOP( "Weather Information" ),
50 I18N_NOOP( "Weather Information" ),
51 KAboutData::License_GPL_V2,
52 "(c) 2003 The Kontact developers" );
53 mAboutData->addAuthor( "Ian Reinhart Geiser", "", "geiseri@kde.org" );
54 mAboutData->addAuthor( "Tobias Koenig", "", "tokoe@kde.org" );
55 mAboutData->addCredit( "John Ratke",
56 I18N_NOOP( "Improvements and more code cleanups" ),
57 "jratke@comcast.net" );
|