newsticker_plugin.cpp
00001
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 <klocale.h>
00023
#include <kparts/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
QStringList& )
00035 : Kontact::Plugin( core, core, name )
00036 {
00037 setInstance( NewsTickerPluginFactory::instance() );
00038 }
00039
00040
Kontact::Summary *NewsTickerPlugin::createSummaryWidget(
QWidget* parentWidget )
00041 {
00042
return new SummaryWidget( parentWidget );
00043 }
This file is part of the documentation for kontact Library Version 3.3.0.