kalendarVariables.h
00001 #ifndef _KALENDAR_VARIABLES_H
00002 #define _KALENDAR_VARIABLES_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <qdatetime.h>
00022 #include <qstring.h>
00023
00024 class KalendarVariables
00025 {
00026 public:
00027 KalendarVariables();
00028 ~KalendarVariables();
00029
00030 void setDate(QDate date);
00031 QDate getDate();
00032 bool isDate();
00033
00034 void setStartDate(QDate start);
00035 QDate getStartDate();
00036 bool isStartDate();
00037
00038 void setEndDate(QDate end);
00039 QDate getEndDate();
00040 bool isEndDate();
00041
00042 void setNext(bool next);
00043 bool isNext();
00044
00045 void setVerbose(bool verbose);
00046 bool isVerbose();
00047
00048 void setCalendarFile(QString calendar);
00049 QString getCalendarFile();
00050
00051 bool isAll();
00052
00053 void setAll( bool all );
00054 bool getAll();
00055
00056 QDate parseDate(QString string);
00057
00058 private:
00059 int findNumber(const QString &str, int &pos, int &startpos);
00060 char findSeparator(const QString &str, int &pos, int &seppos);
00061 void skipWhiteSpace(const QString &str, int &pos);
00062
00063 QDate m_date;
00064 bool m_bIsDate;
00065 QDate m_startDate;
00066 bool m_bIsStartDate;
00067 QDate m_endDate;
00068 QString m_calendar;
00069 bool m_bIsEndDate;
00070 bool m_bNext;
00071 bool m_bVerbose;
00072 bool m_bAll;
00073 int str_length;
00074 };
00075
00076 #endif
This file is part of the documentation for kdelibs Version 3.1.5.