kontact
knotes_plugin.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KNOTES_PLUGIN_H
00024 #define KNOTES_PLUGIN_H
00025
00026 #include <kontactinterfaces/plugin.h>
00027
00028 class SummaryWidget;
00029
00030 class KNotesPlugin : public Kontact::Plugin
00031 {
00032 Q_OBJECT
00033 public:
00034 KNotesPlugin( Kontact::Core *core, const QVariantList & );
00035 ~KNotesPlugin();
00036
00037 virtual Kontact::Summary *createSummaryWidget( QWidget *parentWidget );
00038
00039 virtual QString tipFile() const;
00040 int weight() const { return 600; }
00041
00042 const KAboutData *aboutData();
00043
00044 virtual bool canDecodeMimeData( const QMimeData *data );
00045 virtual void processDropEvent( QDropEvent * );
00046
00047 protected:
00048 KParts::ReadOnlyPart *createPart();
00049
00050 private slots:
00051 void slotNewNote();
00052 void slotSyncNotes();
00053
00054 private:
00055 KAboutData *mAboutData;
00056 };
00057
00058 #endif