26 #include <kgenericfactory.h>
27 #include <tdeparts/componentfactory.h>
32 #include "karm_plugin.h"
33 #include "karmdcopiface_stub.h"
35 typedef KGenericFactory<KarmPlugin, Kontact::Core> KarmPluginFactory;
36 K_EXPORT_COMPONENT_FACTORY( libkontact_karm,
37 KarmPluginFactory( "kontact_karm" ) )
39 KarmPlugin::KarmPlugin( Kontact::Core *core, const char *, const TQStringList& )
40 : Kontact::Plugin( core, core, "KArm" )
42 setInstance( KarmPluginFactory::instance() );
44 insertNewAction( new TDEAction( i18n( "New Task" ), "karm",
45 CTRL+SHIFT+Key_W, this, TQ_SLOT( newTask() ), actionCollection(),
49 KarmPlugin::~KarmPlugin()
53 KParts::ReadOnlyPart* KarmPlugin::createPart()
55 KParts::ReadOnlyPart * part = loadPart();
56 if ( !part ) return 0;
59 mStub = new KarmDCOPIface_stub( dcopClient(), "KArm",
65 void KarmPlugin::newTask()
67 kdDebug() << "Entering newTask" << endl;
68 mStub->addTask( "New Task");
71 #include "karm_plugin.moc"
|