konsolekalendar

konsolekalendarvariables.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * konsolekalendarvariables.h *
3  * *
4  * KonsoleKalendar is a command line interface to KDE calendars *
5  * Copyright (C) 2002-2004 Tuukka Pasanen <illuusio@mailcity.com> *
6  * Copyright (C) 2003-2005 Allen Winter <winter@kde.org> *
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License *
19  * along with this program; if not, write to the Free Software *
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
21  * *
22  * As a special exception, permission is given to link this program *
23  * with any edition of TQt, and distribute the resulting executable, *
24  * without including the source code for TQt in the source distribution. *
25  * *
26  ******************************************************************************/
27 
28 #ifndef _KONSOLEKALENDARVARIABLES_H_
29 #define _KONSOLEKALENDARVARIABLES_H_
30 
31 #include <libkcal/calendarlocal.h>
32 #include <libkcal/calendarresources.h>
33 #include <libkcal/resourcelocal.h>
34 #include <libkcal/resourcecalendar.h>
35 #include <libkcal/event.h>
36 
37 #include <tqstring.h>
38 #include <tqdatetime.h>
39 
45 namespace KCal
46 {
50  enum ExportType
51  {
53  ExportTypeNone,
55  ExportTypeText,
57  ExportTypeTextShort,
59  ExportTypeHTML,
61  ExportTypeMonthHTML,
63  ExportTypeXHTML,
65  ExportTypeXML,
67  ExportTypeCSV,
69  ExportTypeVCard
70  };
71 
78  {
79  public:
88 
93  void setUseEvents( bool useEvents );
98  bool getUseEvents();
99 
104  void setUseTodos( bool useTodos );
109  bool getUseTodos();
110 
115  void setUseJournals( bool useJournals );
120  bool getUseJournals();
121 
126  void setStartDateTime( TQDateTime start );
127 
132  TQDateTime getStartDateTime();
133 
138  bool isStartDateTime();
139 
144  void setEndDateTime( TQDateTime end );
145 
150  TQDateTime getEndDateTime();
151 
156  bool isEndDateTime();
157 
162  void setUID( TQString uid );
163 
168  TQString getUID();
169 
174  bool isUID();
175 
180  void setNext( bool next );
181 
185  bool isNext();
186 
191  void setVerbose( bool verbose );
192 
196  bool isVerbose();
197 
202  void setDryRun( bool dryrun );
203 
208  bool isDryRun();
209 
214  void setCalendarFile( TQString calendar );
215 
220  TQString getCalendarFile();
221 
226  void setImportFile( TQString calendar );
227 
232  TQString getImportFile();
233 
238  void setDescription( TQString description );
239 
244  TQString getDescription();
245 
250  bool isDescription();
251 
256  void setLocation( TQString location );
257 
262  TQString getLocation();
263 
268  bool isLocation();
269 
274  void setSummary( TQString summary );
275 
280  TQString getSummary();
281 
286  bool isSummary();
287 
292  void setAll( bool all );
296  bool getAll();
300  bool isAll();
301 
306  void setFloating( bool floating );
310  bool getFloating();
311 
316  void setCalendar( CalendarResources *resources );
317 
322  CalendarResources *getCalendar();
323 
327  void setExportFile( TQString export_file );
328 
332  TQString getExportFile();
333 
337  bool isExportFile();
338 
342  void setExportType( ExportType exportType );
343 
347  ExportType getExportType();
348 
353  void setDaysCount( int count );
354 
358  bool isDaysCount();
359 
364  int getDaysCount();
365 
366  private:
367  bool m_bIsUID;
368  TQString m_UID;
369  bool m_bIsStartDateTime;
370  TQDateTime m_startDateTime;
371  bool m_bIsEndDateTime;
372  TQDateTime m_endDateTime;
373  bool m_bNext;
374  bool m_bVerbose;
375  bool m_bDryRun;
376  bool m_bUseEvents;
377  bool m_bUseTodos;
378  bool m_bUseJournals;
379  TQString m_calendar;
380  TQString m_import;
381  ExportType m_exportType;
382  bool m_bIsExportFile;
383  TQString m_exportFile;
384  bool m_bAll;
385  bool m_bDescription;
386  TQString m_description;
387  bool m_bLocation;
388  TQString m_location;
389  bool m_bSummary;
390  TQString m_summary;
391  bool m_bFloating;
392  bool m_bDaysCount;
393  int m_daysCount;
394  CalendarResources *m_calendarResources;
395  };
396 
397 }
398 
399 #endif