koeventeditor.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 KOEVENTEDITOR_H
00025 #define KOEVENTEDITOR_H
00026
00027 #include "koincidenceeditor.h"
00028
00029 class KOEditorGeneralEvent;
00030 class KOEditorRecurrence;
00031 class KOEditorFreeBusy;
00032
00033 class SaveTemplateDialog;
00034
00035 class KOEditorFreeBusy;
00036
00037 namespace KCal {
00038 class Calendar;
00039 class Event;
00040 }
00041 using namespace KCal;
00042
00046 class KOEventEditor : public KOIncidenceEditor
00047 {
00048 Q_OBJECT
00049 public:
00053 KOEventEditor( Calendar *calendar, QWidget *parent );
00054 virtual ~KOEventEditor(void);
00055
00056 void init();
00058 void modified (int change=0);
00059 void reload();
00060
00064 void newEvent( QDateTime from, QDateTime to, bool allDay = false );
00068 void newEvent( const QString & );
00072 void newEvent( const QString &summary, const QString &description,
00073 const QString &attachment );
00077 void newEvent( const QString &summary, const QString &description,
00078 const QString &attachment, const QStringList &attendees );
00082 void editIncidence( Incidence * );
00083
00087 void setDefaults( QDateTime from, QDateTime to, bool allDay );
00088
00093 void readEvent( Event *, bool tmpl = false );
00097 void writeEvent( Event * );
00098
00099 QObject *typeAheadReceiver() const;
00100
00101 signals:
00102 void focusReceivedSignal();
00103
00104 protected slots:
00105 void loadDefaults();
00106 void deleteEvent();
00107
00108 void slotLoadTemplate();
00109
00110 void saveTemplate( const QString & );
00111
00112 protected:
00113 QString type() { return "Event"; }
00114 void setupGeneral();
00115 void setupRecurrence();
00116 void setupFreeBusy();
00117
00119 bool validateInput();
00122 bool processInput();
00123 void processCancel();
00124 int msgItemDelete();
00125
00126 private:
00127 Event *mEvent;
00128
00129 KOEditorGeneralEvent *mGeneral;
00130 KOEditorRecurrence *mRecurrence;
00131 KOEditorFreeBusy *mFreeBusy;
00132 };
00133
00134 #endif
This file is part of the documentation for korganizer Library Version 3.3.2.