• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KCal Library

calendarnull.h

Go to the documentation of this file.
00001 /*
00002   This file is part of the kcal library.
00003 
00004   Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
00005 
00006   This library is free software; you can redistribute it and/or
00007   modify it under the terms of the GNU Library General Public
00008   License as published by the Free Software Foundation; either
00009   version 2 of the License, or (at your option) any later version.
00010 
00011   This library is distributed in the hope that it will be useful,
00012   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014   Library General Public License for more details.
00015 
00016   You should have received a copy of the GNU Library General Public License
00017   along with this library; see the file COPYING.LIB.  If not, write to
00018   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019   Boston, MA 02110-1301, USA.
00020 */
00028 #ifndef KCAL_CALENDARNULL_H
00029 #define KCAL_CALENDARNULL_H
00030 
00031 #include "calendar.h"
00032 #include "kcal_export.h"
00033 
00034 namespace KCal {
00035 
00048 class KCAL_EXPORT CalendarNull : public Calendar
00049 {
00050   public:
00060     explicit CalendarNull( const KDateTime::Spec &timeSpec );
00061 
00070     explicit CalendarNull( const QString &timeZoneId );
00071 
00075     ~CalendarNull();
00076 
00081     static CalendarNull *self();
00082 
00087     void close();
00088 
00093     bool save();
00094 
00099     bool reload();
00100 
00101   // Event Specific Methods //
00102 
00107     bool addEvent( Event *event );
00108 
00113     bool deleteEvent( Event *event );
00114 
00119     void deleteAllEvents();
00120 
00125     Event::List rawEvents( EventSortField sortField,
00126                            SortDirection sortDirection );
00127 
00132     Event::List rawEvents( const QDate &start, const QDate &end,
00133                            const KDateTime::Spec &timespec = KDateTime::Spec(),
00134                            bool inclusive = false );
00135 
00141     Event::List rawEventsForDate( const QDate &date,
00142                                   const KDateTime::Spec &timespec = KDateTime::Spec(),
00143                                   EventSortField sortField = EventSortUnsorted,
00144                                   SortDirection sortDirection = SortDirectionAscending );
00145 
00150     Event::List rawEventsForDate( const KDateTime &dt );
00151 
00156     Event *event( const QString &uid );
00157 
00158   // To-do Specific Methods //
00159 
00164     bool addTodo( Todo *todo );
00165 
00170     bool deleteTodo( Todo *todo );
00171 
00176     void deleteAllTodos();
00177 
00182     Todo::List rawTodos( TodoSortField sortField,
00183                          SortDirection sortDirection );
00184 
00189     Todo::List rawTodosForDate( const QDate &date );
00190 
00195     Todo *todo( const QString &uid );
00196 
00197   // Journal Specific Methods //
00198 
00203     bool addJournal( Journal *journal );
00204 
00209     bool deleteJournal( Journal *journal );
00210 
00215     void deleteAllJournals();
00216 
00221     Journal::List rawJournals( JournalSortField sortField,
00222                                SortDirection sortDirection );
00223 
00228     Journal::List rawJournalsForDate( const QDate &date );
00229 
00234     Journal *journal( const QString &uid );
00235 
00236   // Alarm Specific Methods //
00237 
00242     Alarm::List alarms( const KDateTime &from, const KDateTime &to );
00243 
00244   // Observer Specific Methods //
00245 
00250     void incidenceUpdated( IncidenceBase *incidenceBase );
00251 
00252     using QObject::event;   // prevent warning about hidden virtual method
00253 
00254   private:
00255     //@cond PRIVATE
00256     Q_DISABLE_COPY( CalendarNull )
00257     class Private;
00258     Private *const d;
00259     //@endcond
00260 };
00261 
00262 }
00263 
00264 #endif

KCal Library

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.6
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal