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 signals:
00090
void todoCompleted( Todo * );
00091
00092
protected slots:
00093
void loadDefaults();
00094
void deleteTodo();
00095
00096
void slotLoadTemplate();
00097
void saveTemplate(
const QString & );
00098
00099
protected:
00100
QString type() {
return "ToDo"; }
00101
void setupGeneral();
00102
void setupRecurrence();
00103
int msgItemDelete();
00104
00105
private:
00106 Todo *mTodo;
00107
00108 Todo *mRelatedTodo;
00109
00110 KOEditorGeneralTodo *mGeneral;
00111 KOEditorRecurrence *mRecurrence;
00112 };
00113
00114
#endif
This file is part of the documentation for korganizer Library Version 3.3.0.