konsolekalendar Library API Documentation

konsolekalendarvariables.h

00001 #ifndef _KONSOLEKALENDARVARIABLES_H_ 00002 #define _KONSOLEKALENDARVARIABLES_H_ 00003 00004 /*************************************************************************** 00005 konsolekalendarvariables.h 00006 Konsolekalendar variables contains global variables that are 00007 used with this marvelous app;) 00008 ------------------- 00009 begin : Sun Jan 6 2002 00010 copyright : (C) 2002-2003 by Tuukka Pasanen 00011 copyright : (C) 2003 by Allen Winter 00012 email : illuusio@mailcity.com 00013 ***************************************************************************/ 00014 00015 /*************************************************************************** 00016 * * 00017 * This program is free software; you can redistribute it and/or modify * 00018 * it under the terms of the GNU General Public License as published by * 00019 * the Free Software Foundation; either version 2 of the License, or * 00020 * (at your option) any later version. * 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 * Our export types 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 00093 void setTimeZoneId(); 00094 00099 QString getTimeZoneId(); 00100 00105 bool isTimeZoneId(); 00106 00107 void setUID( QString uid ); 00108 00113 QString getUID(); 00114 00119 bool isUID(); 00120 00125 void setNext( bool next ); 00126 00131 bool isNext(); 00132 00137 void setVerbose( bool verbose ); 00138 00143 bool isVerbose(); 00144 00149 void setDryRun( bool dryrun ); 00150 00155 bool isDryRun(); 00156 00161 void setCalendarFile( QString calendar ); 00162 00167 QString getCalendarFile(); 00168 00173 void setImportFile( QString calendar ); 00174 00179 QString getImportFile(); 00180 00185 void setDescription( QString description ); 00186 00191 QString getDescription(); 00192 00197 bool isDescription(); 00198 00203 void setSummary( QString description ); 00204 00209 QString getSummary(); 00210 00215 bool isSummary(); 00216 00217 void setAll( bool all ); 00218 bool getAll(); 00219 bool isAll(); 00220 00221 void setFloating( bool floating ); 00222 bool getFloating(); 00223 00224 QDate parseDate( QString string ); 00225 QTime parseTime( QString str ); 00226 00231 void setDefault( bool def ); 00232 00233 00237 bool isDefault(); 00238 00243 void setCalendar( CalendarLocal *calendar ); 00244 00249 CalendarLocal *getCalendar(); 00250 00255 void setExportFile( QString export_file ); 00256 00261 QString getExportFile(); 00262 00263 /* 00264 * Has an Export File been set? 00265 */ 00266 00267 bool isExportFile(); 00268 00273 void setExportType( int export_type ); 00274 00279 int getExportType(); 00280 00284 bool isCalendarResources(); 00285 00289 CalendarResourceManager *getCalendarResourceManager(); 00290 00294 bool addCalendarResources( ResourceCalendar *cal ); 00295 00299 void setCalendarResources( CalendarResources *resource ); 00300 00304 CalendarResources *getCalendarResources(); 00305 00306 00310 bool loadCalendarResources( KConfig *config ); 00311 00312 void setDaysCount( int count ); 00313 int getDaysCount(); 00314 bool isDaysCount(); 00315 00316 00317 private: 00318 int findNumber( const QString &str, int &pos, int &startpos ); 00319 char findSeparator( const QString &str, int &pos, int &seppos ); 00320 void skipWhiteSpace( const QString &str, int &pos ); 00321 00322 bool m_bIsTimeZoneId; 00323 QString m_TimeZoneId; 00324 QDateTime m_startDateTime; 00325 QDateTime m_endDateTime; 00326 bool m_bIsStartDateTime; 00327 bool m_bIsEndDateTime; 00328 QString m_calendar; 00329 QString m_import; 00330 QString m_description; 00331 QString m_summary; 00332 QString m_export_file; 00333 QString m_UID; 00334 bool m_bSummary; 00335 bool m_bNext; 00336 bool m_bVerbose; 00337 bool m_bDryRun; 00338 bool m_bAll; 00339 bool m_bDescription; 00340 bool m_bFloating; 00341 bool m_bDaysCount; 00342 bool m_bIsUID; 00343 int str_length; 00344 int m_export_type; 00345 int m_daysCount; 00346 QString m_exportFile; 00347 bool m_bIsExportFile; 00348 bool m_bIsDefault; 00349 bool m_bIsCalendarResources; 00350 // New resource stuff will over-ride old pne 00351 CalendarResources *m_resource; 00352 // We can use this from everywhere 00353 CalendarLocal *m_calendarLocal; 00354 00355 00356 00357 00358 }; 00359 00360 } 00361 00362 #endif
KDE Logo
This file is part of the documentation for konsolekalendar Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:15 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003