00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef KORGANIZER_PLUGIN_H
00026 #define KORGANIZER_PLUGIN_H
00027
00028 #include <tdelocale.h>
00029 #include <tdeparts/part.h>
00030
00031 #include "kcalendariface_stub.h"
00032 #include "korganizeriface_stub.h"
00033 #include "plugin.h"
00034 #include "uniqueapphandler.h"
00035
00036 class KOrganizerPlugin : public Kontact::Plugin
00037 {
00038 Q_OBJECT
00039
00040 public:
00041 KOrganizerPlugin( Kontact::Core *core, const char *name, const TQStringList& );
00042 virtual ~KOrganizerPlugin();
00043
00044 virtual bool createDCOPInterface( const TQString& serviceType );
00045 virtual bool isRunningStandalone();
00046 int weight() const { return 400; }
00047
00048 virtual bool queryClose() const;
00049
00050 bool canDecodeDrag( TQMimeSource * );
00051 void processDropEvent( TQDropEvent * );
00052
00053 virtual Kontact::Summary *createSummaryWidget( TQWidget *parent );
00054
00055 virtual TQString tipFile() const;
00056 virtual TQStringList invisibleToolbarActions() const;
00057
00058 void select();
00059
00060 KCalendarIface_stub *interface();
00061
00062
00063 void loadProfile( const TQString& path );
00064 void saveToProfile( const TQString& path ) const;
00065
00066 protected:
00067 KParts::ReadOnlyPart *createPart();
00068
00069 private slots:
00070 void slotNewEvent();
00071 void slotSyncEvents();
00072
00073 private:
00074 KCalendarIface_stub *mIface;
00075 Kontact::UniqueAppWatcher *mUniqueAppWatcher;
00076 };
00077
00078 #endif