korganizer
kotodoeditor.h00001
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 #ifndef _KOTODOEDITOR_H
00027 #define _KOTODOEDITOR_H
00028
00029 #include "koincidenceeditor.h"
00030
00031 class QDateTime;
00032 class KOEditorGeneralTodo;
00033 class KOEditorRecurrence;
00037 class KOTodoEditor : public KOIncidenceEditor
00038 {
00039 Q_OBJECT
00040 public:
00044 KOTodoEditor( Calendar *calendar, QWidget *parent );
00045 virtual ~KOTodoEditor();
00046
00047 void init();
00048
00049 void reload();
00050
00054 void newTodo( const QDateTime &due, Todo *relatedTodo=0, bool allDay=false);
00055
00059 void newTodo( const QString & );
00063 void newTodo( const QString &summary, const QString &description,
00064 const QString &attachment );
00068 void newTodo( const QString &summary, const QString &description,
00069 const QString &attachment, const QStringList &attendees );
00070
00072 void editIncidence(Incidence *);
00073
00075 void setDefaults( const QDateTime &due, Todo *relatedTodo, bool allDay );
00077 void readTodo(Todo *);
00079 void writeTodo(Todo *);
00080
00082 bool validateInput();
00085 bool processInput();
00086
00088 void modified (int change=0);
00089
00090 protected slots:
00091 void loadDefaults();
00092 void deleteTodo();
00093 void slotSaveTemplate( const QString & );
00094
00095 protected:
00096 void loadTemplate( CalendarLocal& );
00097 QStringList& templates() const;
00098 QString type() { return "ToDo"; }
00099 void setupGeneral();
00100 void setupRecurrence();
00101 int msgItemDelete();
00102
00103 private:
00104 Todo *mTodo;
00105
00106 Todo *mRelatedTodo;
00107
00108 KOEditorGeneralTodo *mGeneral;
00109 KOEditorRecurrence *mRecurrence;
00110 };
00111
00112 #endif
|