• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

KCal Library

  • sources
  • kde-4.12
  • kdepimlibs
  • kcal
calendarnull.h
Go to the documentation of this file.
1 /*
2  This file is part of the kcal library.
3 
4  Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
28 #ifndef KCAL_CALENDARNULL_H
29 #define KCAL_CALENDARNULL_H
30 
31 #include "calendar.h"
32 #include "kcal_export.h"
33 
34 namespace KCal {
35 
48 class KCAL_DEPRECATED_EXPORT CalendarNull : public Calendar
49 {
50  public:
60  explicit CalendarNull( const KDateTime::Spec &timeSpec );
61 
70  explicit CalendarNull( const QString &timeZoneId );
71 
75  ~CalendarNull();
76 
81  static CalendarNull *self();
82 
87  void close();
88 
93  bool save();
94 
99  bool reload();
100 
101  // Event Specific Methods //
102 
107  bool addEvent( Event *event );
108 
113  bool deleteEvent( Event *event );
114 
119  void deleteAllEvents();
120 
125  Event::List rawEvents( EventSortField sortField,
126  SortDirection sortDirection );
127 
132  Event::List rawEvents( const QDate &start, const QDate &end,
133  const KDateTime::Spec &timeSpec = KDateTime::Spec(),
134  bool inclusive = false );
135 
147  Event::List rawEventsForDate( const QDate &date,
148  const KDateTime::Spec &timeSpec = KDateTime::Spec(),
149  EventSortField sortField = EventSortUnsorted,
150  SortDirection sortDirection = SortDirectionAscending );
151 
156  Event::List rawEventsForDate( const KDateTime &dt );
157 
162  Event *event( const QString &uid );
163 
164  // To-do Specific Methods //
165 
170  bool addTodo( Todo *todo );
171 
176  bool deleteTodo( Todo *todo );
177 
182  void deleteAllTodos();
183 
188  Todo::List rawTodos( TodoSortField sortField,
189  SortDirection sortDirection );
190 
195  Todo::List rawTodosForDate( const QDate &date );
196 
201  Todo *todo( const QString &uid );
202 
203  // Journal Specific Methods //
204 
209  bool addJournal( Journal *journal );
210 
215  bool deleteJournal( Journal *journal );
216 
221  void deleteAllJournals();
222 
227  Journal::List rawJournals( JournalSortField sortField,
228  SortDirection sortDirection );
229 
234  Journal::List rawJournalsForDate( const QDate &date );
235 
240  Journal *journal( const QString &uid );
241 
242  // Alarm Specific Methods //
243 
248  Alarm::List alarms( const KDateTime &from, const KDateTime &to );
249 
250  // Observer Specific Methods //
251 
256  void incidenceUpdated( IncidenceBase *incidenceBase );
257 
258  using QObject::event; // prevent warning about hidden virtual method
259 
260  private:
261  //@cond PRIVATE
262  Q_DISABLE_COPY( CalendarNull )
263  class Private;
264  Private *const d;
265  //@endcond
266 };
267 
268 }
269 
270 #endif
KCal::Todo
Provides a To-do in the sense of RFC2445.
Definition: todo.h:44
KCal::Calendar
Represents the main calendar class.
Definition: calendar.h:119
KCal::IncidenceBase
An abstract class that provides a common base for all calendar incidence classes. ...
Definition: incidencebase.h:102
KCal::Event
This class provides an Event in the sense of RFC2445.
Definition: event.h:41
KCal::CalendarNull
Represents a null calendar class; that is, a calendar which contains no information and provides no c...
Definition: calendarnull.h:48
calendar.h
This file is part of the API for handling calendar data and defines the Calendar class.
KCal::ListBase
This class provides a template for lists of pointers.
Definition: listbase.h:44
KCal::Journal
Provides a Journal in the sense of RFC2445.
Definition: journal.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCal Library

Skip menu "KCal Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal