kontact
newsticker_plugin.cpp00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <kgenericfactory.h>
00022 #include <tdelocale.h>
00023 #include <tdeparts/componentfactory.h>
00024 #include "core.h"
00025
00026 #include "summarywidget.h"
00027
00028 #include "newsticker_plugin.h"
00029
00030 typedef KGenericFactory< NewsTickerPlugin, Kontact::Core > NewsTickerPluginFactory;
00031 K_EXPORT_COMPONENT_FACTORY( libkontact_newstickerplugin,
00032 NewsTickerPluginFactory( "kontact_newstickerplugin" ) )
00033
00034 NewsTickerPlugin::NewsTickerPlugin( Kontact::Core *core, const char *name, const TQStringList& )
00035 : Kontact::Plugin( core, TQT_TQOBJECT(core), name )
00036 {
00037 setInstance( NewsTickerPluginFactory::instance() );
00038 }
00039
00040 NewsTickerPlugin::~NewsTickerPlugin()
00041 {
00042 }
00043
00044 Kontact::Summary *NewsTickerPlugin::createSummaryWidget( TQWidget* parentWidget )
00045 {
00046 return new SummaryWidget( parentWidget );
00047 }
|