konsolekalendar
konsolekalendar.hGo to the documentation of this file.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
00027
00028 #ifndef _KONSOLEKALENDAR_H
00029 #define _KONSOLEKALENDAR_H
00030
00031 #include <qdatetime.h>
00032
00033 #include <kapplication.h>
00034
00035 #include <libkcal/calendarlocal.h>
00036 #include <libkcal/resourcecalendar.h>
00037 #include <libkcal/event.h>
00038
00039 #include "konsolekalendarvariables.h"
00040
00046 namespace KCal
00047 {
00052 class KonsoleKalendar
00053 {
00054 public:
00058 KonsoleKalendar( KonsoleKalendarVariables *variables );
00062 ~KonsoleKalendar();
00063
00067 bool showInstance();
00068
00072 bool importCalendar();
00073
00077 bool addEvent();
00078
00082 bool changeEvent();
00083
00087 bool deleteEvent();
00088
00096 bool isEvent( QDateTime startdate, QDateTime enddate, QString summary );
00097
00101 bool createCalendar();
00102
00103 private:
00104
00108 void printSpecs();
00109
00116 bool printEventList( QTextStream *ts, Event::List *eventList, QDate dt );
00117
00124 bool printEvent( QTextStream *ts, Event *event, QDate dt );
00125
00129 KonsoleKalendarVariables *m_variables;
00130
00134 ResourceCalendar *m_Calendar;
00135
00139 QDate m_saveDate;
00140
00141 };
00142
00143 }
00144 #endif
|