konsolekalendar

konsolekalendarvariables.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002  * konsolekalendarvariables.h                                                  *
00003  *                                                                             *
00004  * KonsoleKalendar is a command line interface to KDE calendars                *
00005  * Copyright (C) 2002-2004  Tuukka Pasanen <illuusio@mailcity.com>             *
00006  * Copyright (C) 2003-2005  Allen Winter <winter@kde.org>                      *
00007  *                                                                             *
00008  * This program is free software; you can redistribute it and/or modify        *
00009  * it under the terms of the GNU General Public License as published by        *
00010  * the Free Software Foundation; either version 2 of the License, or           *
00011  * (at your option) any later version.                                         *
00012  *                                                                             *
00013  * This program is distributed in the hope that it will be useful,             *
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of              *
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the                *
00016  * GNU General Public License for more details.                                *
00017  *                                                                             *
00018  * You should have received a copy of the GNU General Public License           *
00019  * along with this program; if not, write to the Free Software                 *
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
00021  *                                                                             *
00022  * As a special exception, permission is given to link this program            *
00023  * with any edition of Qt, and distribute the resulting executable,            *
00024  * without including the source code for Qt in the source distribution.        *
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 <qstring.h>
00038 #include <qdatetime.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( QDateTime start );
00127 
00132     QDateTime getStartDateTime();
00133 
00138     bool isStartDateTime();
00139 
00144     void setEndDateTime( QDateTime end );
00145 
00150     QDateTime getEndDateTime();
00151 
00156     bool isEndDateTime();
00157 
00162     void setUID( QString uid );
00163 
00168     QString 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( QString calendar );
00215 
00220     QString getCalendarFile();
00221 
00226     void setImportFile( QString calendar );
00227 
00232     QString getImportFile();
00233 
00238     void setDescription( QString description );
00239 
00244     QString getDescription();
00245 
00250     bool isDescription();
00251 
00256     void setLocation( QString location );
00257 
00262     QString getLocation();
00263 
00268     bool isLocation();
00269 
00274     void setSummary( QString summary );
00275 
00280     QString 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( QString export_file );
00328 
00332     QString 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     QString m_UID;
00369     bool m_bIsStartDateTime;
00370     QDateTime m_startDateTime;
00371     bool m_bIsEndDateTime;
00372     QDateTime 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     QString m_calendar;
00380     QString m_import;
00381     ExportType m_exportType;
00382     bool m_bIsExportFile;
00383     QString m_exportFile;
00384     bool m_bAll;
00385     bool m_bDescription;
00386     QString m_description;
00387     bool m_bLocation;
00388     QString m_location;
00389     bool m_bSummary;
00390     QString m_summary;
00391     bool m_bFloating;
00392     bool m_bDaysCount;
00393     int m_daysCount;
00394     CalendarResources *m_calendarResources;
00395   };
00396 
00397 }
00398 
00399 #endif