kotodoeditor.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _KOTODOEDITOR_H
00025 #define _KOTODOEDITOR_H
00026
00027 #include "koincidenceeditor.h"
00028
00029 class QDateTime;
00030 class KOEditorGeneralTodo;
00031 class KOEditorRecurrence;
00035 class KOTodoEditor : public KOIncidenceEditor
00036 {
00037 Q_OBJECT
00038 public:
00042 KOTodoEditor( Calendar *calendar, QWidget *parent );
00043 virtual ~KOTodoEditor();
00044
00045 void init();
00046
00047 void reload();
00048
00052 void newTodo(QDateTime due,Todo *relatedTodo=0,bool allDay=false);
00053
00057 void newTodo( const QString & );
00061 void newTodo( const QString &summary, const QString &description,
00062 const QString &attachment );
00066 void newTodo( const QString &summary, const QString &description,
00067 const QString &attachment, const QStringList &attendees );
00068
00070 void editIncidence(Incidence *);
00071
00073 void setDefaults(QDateTime due,Todo *relatedTodo,bool allDay);
00075 void readTodo(Todo *);
00077 void writeTodo(Todo *);
00078
00080 bool validateInput();
00083 bool processInput();
00084 void processCancel();
00085
00087 void modified (int change=0);
00088
00089 protected slots:
00090 void loadDefaults();
00091 void deleteTodo();
00092 void slotSaveTemplate( const QString & );
00093
00094 protected:
00095 void loadTemplate( CalendarLocal& );
00096 QStringList& templates() const;
00097 QString type() { return "ToDo"; }
00098 void setupGeneral();
00099 void setupRecurrence();
00100 int msgItemDelete();
00101
00102 private:
00103 Todo *mTodo;
00104
00105 Todo *mRelatedTodo;
00106
00107 KOEditorGeneralTodo *mGeneral;
00108 KOEditorRecurrence *mRecurrence;
00109 };
00110
00111 #endif
This file is part of the documentation for korganizer Library Version 3.3.2.