konsolekalendarvariables.h
00001 #ifndef _KONSOLEKALENDARVARIABLES_H_
00002 #define _KONSOLEKALENDARVARIABLES_H_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include <qdatetime.h>
00025 #include <qstring.h>
00026
00027 #include <libkcal/calendarlocal.h>
00028 #include <libkcal/calendarresources.h>
00029 #include <libkcal/resourcelocal.h>
00030 #include <libkcal/resourcecalendar.h>
00031 #include <libkcal/event.h>
00032
00033
00034
00035
00036
00037 #define NONE 0
00038 #define TEXT_KONSOLEKALENDAR 1
00039 #define HTML 2
00040 #define XHTML 3
00041 #define XML 4
00042 #define CSV 5
00043 #define VCARD 6
00044
00045
00046 namespace KCal {
00047
00048 class KonsoleKalendarVariables
00049 {
00050 public:
00051 KonsoleKalendarVariables();
00052 ~KonsoleKalendarVariables();
00053
00058 void setStartDateTime( QDateTime start );
00059
00064 QDateTime getStartDateTime();
00065
00070 bool isStartDateTime();
00071
00076 void setEndDateTime( QDateTime end );
00077
00082 QDateTime getEndDateTime();
00083
00088 bool isEndDateTime();
00089
00090 void setUID( QString uid );
00091
00096 QString getUID();
00097
00102 bool isUID();
00103
00108 void setNext( bool next );
00109
00114 bool isNext();
00115
00120 void setVerbose( bool verbose );
00121
00126 bool isVerbose();
00127
00132 void setDryRun( bool dryrun );
00133
00138 bool isDryRun();
00139
00144 void setCalendarFile( QString calendar );
00145
00150 QString getCalendarFile();
00151
00156 void setImportFile( QString calendar );
00157
00162 QString getImportFile();
00163
00168 void setDescription( QString description );
00169
00174 QString getDescription();
00175
00180 bool isDescription();
00181
00186 void setSummary( QString description );
00187
00192 QString getSummary();
00193
00198 bool isSummary();
00199
00200 void setAll( bool all );
00201 bool getAll();
00202 bool isAll();
00203
00204 void setFloating( bool floating );
00205 bool getFloating();
00206
00207 QDate parseDate( QString string );
00208 QTime parseTime( QString str );
00209
00214 void setDefault( bool def );
00215
00216
00220 bool isDefault();
00221
00226 void setCalendar( CalendarLocal *calendar );
00227
00232 CalendarLocal *getCalendar();
00233
00238 void setExportFile( QString export_file );
00239
00244 QString getExportFile();
00245
00246
00247
00248
00249
00250 bool isExportFile();
00251
00256 void setExportType( int export_type );
00257
00262 int getExportType();
00263
00267 bool isCalendarResources();
00268
00272 CalendarResourceManager *getCalendarResourceManager();
00273
00277 bool addCalendarResources( ResourceCalendar *cal );
00278
00282 void setCalendarResources( CalendarResources *resource );
00283
00287 CalendarResources *getCalendarResources();
00288
00289
00293 bool loadCalendarResources( KConfig *config );
00294
00295 void setDaysCount( int count );
00296 int getDaysCount();
00297 bool isDaysCount();
00298
00299
00300 private:
00301 int findNumber( const QString &str, int &pos, int &startpos );
00302 char findSeparator( const QString &str, int &pos, int &seppos );
00303 void skipWhiteSpace( const QString &str, int &pos );
00304
00305 QDateTime m_startDateTime;
00306 QDateTime m_endDateTime;
00307 bool m_bIsStartDateTime;
00308 bool m_bIsEndDateTime;
00309 QString m_calendar;
00310 QString m_import;
00311 QString m_description;
00312 QString m_summary;
00313 QString m_export_file;
00314 QString m_UID;
00315 bool m_bSummary;
00316 bool m_bNext;
00317 bool m_bVerbose;
00318 bool m_bDryRun;
00319 bool m_bAll;
00320 bool m_bDescription;
00321 bool m_bFloating;
00322 bool m_bDaysCount;
00323 bool m_bIsUID;
00324 int str_length;
00325 int m_export_type;
00326 int m_daysCount;
00327 QString m_exportFile;
00328 bool m_bIsExportFile;
00329 bool m_bIsDefault;
00330 bool m_bIsCalendarResources;
00331
00332 CalendarResources *m_resource;
00333
00334 CalendarLocal *m_calendarLocal;
00335
00336
00337
00338
00339 };
00340
00341 }
00342
00343 #endif
This file is part of the documentation for konsolekalendar Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Mar 6 17:18:34 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003