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 Journal;
00037
class Incidence;
00038 }
00039
using namespace KCal;
00040
00041
class KOEditorGeneralJournal;
00042
00046 class KOJournalEditor :
public KOIncidenceEditor
00047 {
00048 Q_OBJECT
00049
public:
00053
KOJournalEditor( Calendar *calendar,
QWidget *parent );
00054
virtual ~
KOJournalEditor();
00055
00056
void init();
00057
00058
void reload();
00059
00063
void newJournal(
QDate date );
00064
void newJournal(
const QString &text,
QDate date );
00065
00069
void newJournal(
const QString &text );
00073
void newJournal(
const QString &summary,
const QString &description,
00074
const QString &attachment );
00075
00077
void editIncidence(Incidence *);
00078
00080
void setDefaults(
QDate date );
00082
void readJournal( Journal * );
00084
void writeJournal( Journal * );
00085
00086
int msgItemDelete();
00088
bool validateInput();
00091
bool processInput();
00092
void processCancel();
00093
00095
void modified (
int change=0);
00096
00097
protected slots:
00098
void loadDefaults();
00099
void deleteJournal();
00100
00101
void slotLoadTemplate();
00102
void saveTemplate(
const QString & );
00103
00104
protected:
00105
QString type() {
return "Journal"; }
00106
void setupGeneral();
00107
00108
00109
private:
00110 Journal *mJournal;
00111 KOEditorGeneralJournal *mGeneral;
00112 };
00113
00114
#endif
This file is part of the documentation for korganizer Library Version 3.3.0.