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
00026
00027
00028
00029
00030
00031 #ifndef KORGANIZER_SHARED_H
00032 #define KORGANIZER_SHARED_H
00033
00034 #include "korganizeriface.h"
00035
00036 #include <tqobject.h>
00037 #include <kdepimmacros.h>
00038
00039 class ActionManager;
00040
00041
00042 class KDE_EXPORT KOrganizerIfaceImpl : public TQObject, virtual public KOrganizerIface {
00043 public:
00044 KOrganizerIfaceImpl( ActionManager* mActionManager,
00045 TQObject* parent=0, const char* name=0 );
00046 ~KOrganizerIfaceImpl();
00047
00048 bool openURL( const TQString &url );
00049 bool mergeURL( const TQString &url );
00050 void closeURL();
00051 bool saveURL();
00052 bool canQueryClose();
00053 bool saveAsURL( const TQString &url );
00054 TQString getCurrentURLasString() const;
00055 void syncAllResources();
00056
00057 bool editIncidence( const TQString &uid );
00058 bool editIncidence( const TQString &uid, const TQDate &date );
00059
00061 bool deleteIncidence( const TQString &uid ) { return deleteIncidence( uid, false ); }
00063 bool deleteIncidence( const TQString &uid, bool force );
00064
00066 bool addIncidence( const TQString &iCal );
00067
00069 void loadProfile( const TQString& path );
00070
00072 void saveToProfile( const TQString& path ) const;
00073
00075 bool handleCommandLine();
00076
00077 private:
00078 ActionManager* mActionManager;
00079 };
00080
00081
00082 #endif // KORGANIZER_SHARED_H
00083