konsolekalendar

konsolekalendar.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * konsolekalendar.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 _KONSOLEKALENDAR_H
29 #define _KONSOLEKALENDAR_H
30 
31 #include <tqdatetime.h>
32 
33 #include <tdeapplication.h>
34 
35 #include <libkcal/calendarlocal.h>
36 #include <libkcal/resourcecalendar.h>
37 #include <libkcal/event.h>
38 
40 
46 namespace KCal
47 {
53  {
54  public:
63 
67  bool showInstance();
68 
72  bool importCalendar();
73 
77  bool addEvent();
78 
82  bool changeEvent();
83 
87  bool deleteEvent();
88 
96  bool isEvent( TQDateTime startdate, TQDateTime enddate, TQString summary );
97 
101  bool createCalendar();
102 
103  private:
104 
108  void printSpecs();
109 
116  bool printEventList( TQTextStream *ts, Event::List *eventList, TQDate dt );
117 
124  bool printEvent( TQTextStream *ts, Event *event, TQDate dt );
125 
129  KonsoleKalendarVariables *m_variables;
130 
134  ResourceCalendar *m_Calendar;
135 
139  TQDate m_saveDate;
140 
141  };
142 
143 }
144 #endif
This class provides all the variables for the program.
The base class of the project.
bool changeEvent()
Change event.
bool addEvent()
Add event to calendar.
bool createCalendar()
Creates calendar file (If it doesn't exists)
KonsoleKalendar(KonsoleKalendarVariables *variables)
Constructs a KonsoleKalendar object from command line arguments.
~KonsoleKalendar()
Destructor.
bool isEvent(TQDateTime startdate, TQDateTime enddate, TQString summary)
Detect if event already exists.
bool deleteEvent()
Delete event.
bool importCalendar()
Imports calendar file.
bool showInstance()
Visualize what we need.
Provides the KonsoleKalendarVariables class definition.