kojournaleditor.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
00025
00026 #ifndef KOJOURNALEDITOR_H
00027 #define KOJOURNALEDITOR_H
00028
00029 #include "koincidenceeditor.h"
00030
00031 #include <qdatetime.h>
00032
00033 class QDateTime;
00034 namespace KCal {
00035 class Calendar;
00036 class CalendarLocal;
00037 class Journal;
00038 class Incidence;
00039 }
00040 using namespace KCal;
00041
00042 class KOEditorGeneralJournal;
00043
00047 class KOJournalEditor : public KOIncidenceEditor
00048 {
00049 Q_OBJECT
00050 public:
00054 KOJournalEditor( Calendar *calendar, QWidget *parent );
00055 virtual ~KOJournalEditor();
00056
00057 void init();
00058
00059 void reload();
00060
00064 void newJournal( QDate date );
00065 void newJournal( const QString &text, QDate date );
00066
00070 void newJournal( const QString &text );
00074 void newJournal( const QString &summary, const QString &description,
00075 const QString &attachment );
00076
00078 void editIncidence(Incidence *);
00079
00081 void setDefaults( QDate date );
00083 void readJournal( Journal * );
00085 void writeJournal( Journal * );
00086
00087 int msgItemDelete();
00089 bool validateInput();
00092 bool processInput();
00093 void processCancel();
00094
00096 void modified (int change=0);
00097
00098 protected slots:
00099 void loadDefaults();
00100 void deleteJournal();
00101
00102 void slotSaveTemplate( const QString & );
00103
00104 protected:
00105 QString type() { return "Journal"; }
00106 void setupGeneral();
00107
00108
00109 void loadTemplate( CalendarLocal& );
00110 QStringList& templates() const;
00111 private:
00112 Journal *mJournal;
00113 KOEditorGeneralJournal *mGeneral;
00114 };
00115
00116 #endif
This file is part of the documentation for korganizer Library Version 3.3.2.