22#include <tdeaboutdata.h>
25#include <kgenericfactory.h>
26#include <kiconloader.h>
27#include <kstatusbar.h>
30#include "knotes_part.h"
31#include "summarywidget.h"
33#include "knotes_plugin.h"
36typedef KGenericFactory< KNotesPlugin, Kontact::Core > KNotesPluginFactory;
37K_EXPORT_COMPONENT_FACTORY( libkontact_knotesplugin,
38 KNotesPluginFactory( "kontact_knotesplugin" ) )
41KNotesPlugin::KNotesPlugin( Kontact::Core *core, const char *, const TQStringList & )
42 : Kontact::Plugin( core, core, "knotes" ),
45 setInstance( KNotesPluginFactory::instance() );
47 insertNewAction( new TDEAction( i18n( "New Note..." ), "knotes", CTRL+SHIFT+Key_N,
48 this, TQ_SLOT( slotNewNote() ), actionCollection(), "new_note" ) );
49 insertSyncAction( new TDEAction( i18n( "Synchronize Notes" ), "reload", 0,
50 this, TQ_SLOT( slotSyncNotes() ), actionCollection(), "knotes_sync" ) );
53KNotesPlugin::~KNotesPlugin()
57KParts::ReadOnlyPart* KNotesPlugin::createPart()
59 return new KNotesPart( this, "notes" );
64 return new KNotesSummaryWidget( this, parentWidget );
67const TDEAboutData *KNotesPlugin::aboutData()
70 mAboutData = new TDEAboutData( "knotes", I18N_NOOP( "Notes Management" ),
71 "0.5", I18N_NOOP( "Notes Management" ),
72 TDEAboutData::License_GPL_V2,
73 "(c) 2003-2020 The Kontact developers" );
74 mAboutData->addAuthor( "Michael Brade", "", "brade@kde.org" );
75 mAboutData->addAuthor( "Tobias Koenig", "", "tokoe@kde.org" );
76 mAboutData->addAuthor( "TDE Team", "", "trinitydesktop.org" );
85void KNotesPlugin::slotNewNote()
88 static_cast<KNotesPart * >( part() )->newNote();
91void KNotesPlugin::slotSyncNotes()
93 DCOPRef ref( "kmail", "KMailICalIface" );
94 ref.send( "triggerSync", TQString( "Note") );
97#include "knotes_plugin.moc"
Summary widget for display in the Summary View plugin.
|