konsolekalendar Library API Documentation

kalendarVariables.h

00001 #ifndef _KALENDAR_VARIABLES_H
00002 #define _KALENDAR_VARIABLES_H
00003 
00004 /***************************************************************************
00005         kalendarVariables.h  -  description
00006            -------------------
00007     begin                : Sun Jan 6 2002
00008     copyright            : (C) 2002 by Tuukka Pasanen
00009     email                : illuusio@mailcity.com
00010  ***************************************************************************/
00011 
00012 /***************************************************************************
00013  *                                                                         *
00014  *   This program is free software; you can redistribute it and/or modify  *
00015  *   it under the terms of the GNU General Public License as published by  *
00016  *   the Free Software Foundation; either version 2 of the License, or     *
00017  *   (at your option) any later version.                                   *
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
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:19 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001