konsolekalendar
konsolekalendarvariables.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 _KONSOLEKALENDARVARIABLES_H_
00029 #define _KONSOLEKALENDARVARIABLES_H_
00030
00031 #include <libkcal/calendarlocal.h>
00032 #include <libkcal/calendarresources.h>
00033 #include <libkcal/resourcelocal.h>
00034 #include <libkcal/resourcecalendar.h>
00035 #include <libkcal/event.h>
00036
00037 #include <tqstring.h>
00038 #include <tqdatetime.h>
00039
00045 namespace KCal
00046 {
00050 enum ExportType
00051 {
00053 ExportTypeNone,
00055 ExportTypeText,
00057 ExportTypeTextShort,
00059 ExportTypeHTML,
00061 ExportTypeMonthHTML,
00063 ExportTypeXHTML,
00065 ExportTypeXML,
00067 ExportTypeCSV,
00069 ExportTypeVCard
00070 };
00071
00077 class KonsoleKalendarVariables
00078 {
00079 public:
00083 KonsoleKalendarVariables();
00087 ~KonsoleKalendarVariables();
00088
00093 void setUseEvents( bool useEvents );
00098 bool getUseEvents();
00099
00104 void setUseTodos( bool useTodos );
00109 bool getUseTodos();
00110
00115 void setUseJournals( bool useJournals );
00120 bool getUseJournals();
00121
00126 void setStartDateTime( TQDateTime start );
00127
00132 TQDateTime getStartDateTime();
00133
00138 bool isStartDateTime();
00139
00144 void setEndDateTime( TQDateTime end );
00145
00150 TQDateTime getEndDateTime();
00151
00156 bool isEndDateTime();
00157
00162 void setUID( TQString uid );
00163
00168 TQString getUID();
00169
00174 bool isUID();
00175
00180 void setNext( bool next );
00181
00185 bool isNext();
00186
00191 void setVerbose( bool verbose );
00192
00196 bool isVerbose();
00197
00202 void setDryRun( bool dryrun );
00203
00208 bool isDryRun();
00209
00214 void setCalendarFile( TQString calendar );
00215
00220 TQString getCalendarFile();
00221
00226 void setImportFile( TQString calendar );
00227
00232 TQString getImportFile();
00233
00238 void setDescription( TQString description );
00239
00244 TQString getDescription();
00245
00250 bool isDescription();
00251
00256 void setLocation( TQString location );
00257
00262 TQString getLocation();
00263
00268 bool isLocation();
00269
00274 void setSummary( TQString summary );
00275
00280 TQString getSummary();
00281
00286 bool isSummary();
00287
00292 void setAll( bool all );
00296 bool getAll();
00300 bool isAll();
00301
00306 void setFloating( bool floating );
00310 bool getFloating();
00311
00316 void setCalendar( CalendarResources *resources );
00317
00322 CalendarResources *getCalendar();
00323
00327 void setExportFile( TQString export_file );
00328
00332 TQString getExportFile();
00333
00337 bool isExportFile();
00338
00342 void setExportType( ExportType exportType );
00343
00347 ExportType getExportType();
00348
00353 void setDaysCount( int count );
00354
00358 bool isDaysCount();
00359
00364 int getDaysCount();
00365
00366 private:
00367 bool m_bIsUID;
00368 TQString m_UID;
00369 bool m_bIsStartDateTime;
00370 TQDateTime m_startDateTime;
00371 bool m_bIsEndDateTime;
00372 TQDateTime m_endDateTime;
00373 bool m_bNext;
00374 bool m_bVerbose;
00375 bool m_bDryRun;
00376 bool m_bUseEvents;
00377 bool m_bUseTodos;
00378 bool m_bUseJournals;
00379 TQString m_calendar;
00380 TQString m_import;
00381 ExportType m_exportType;
00382 bool m_bIsExportFile;
00383 TQString m_exportFile;
00384 bool m_bAll;
00385 bool m_bDescription;
00386 TQString m_description;
00387 bool m_bLocation;
00388 TQString m_location;
00389 bool m_bSummary;
00390 TQString m_summary;
00391 bool m_bFloating;
00392 bool m_bDaysCount;
00393 int m_daysCount;
00394 CalendarResources *m_calendarResources;
00395 };
00396
00397 }
00398
00399 #endif
|