• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • 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_DEPRECATED 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 
00147     Event::List rawEventsForDate( const QDate &date,
00148                                   const KDateTime::Spec &timeSpec = KDateTime::Spec(),
00149                                   EventSortField sortField = EventSortUnsorted,
00150                                   SortDirection sortDirection = SortDirectionAscending );
00151 
00156     Event::List rawEventsForDate( const KDateTime &dt );
00157 
00162     Event *event( const QString &uid );
00163 
00164   // To-do Specific Methods //
00165 
00170     bool addTodo( Todo *todo );
00171 
00176     bool deleteTodo( Todo *todo );
00177 
00182     void deleteAllTodos();
00183 
00188     Todo::List rawTodos( TodoSortField sortField,
00189                          SortDirection sortDirection );
00190 
00195     Todo::List rawTodosForDate( const QDate &date );
00196 
00201     Todo *todo( const QString &uid );
00202 
00203   // Journal Specific Methods //
00204 
00209     bool addJournal( Journal *journal );
00210 
00215     bool deleteJournal( Journal *journal );
00216 
00221     void deleteAllJournals();
00222 
00227     Journal::List rawJournals( JournalSortField sortField,
00228                                SortDirection sortDirection );
00229 
00234     Journal::List rawJournalsForDate( const QDate &date );
00235 
00240     Journal *journal( const QString &uid );
00241 
00242   // Alarm Specific Methods //
00243 
00248     Alarm::List alarms( const KDateTime &from, const KDateTime &to );
00249 
00250   // Observer Specific Methods //
00251 
00256     void incidenceUpdated( IncidenceBase *incidenceBase );
00257 
00258     using QObject::event;   // prevent warning about hidden virtual method
00259 
00260   private:
00261     //@cond PRIVATE
00262     Q_DISABLE_COPY( CalendarNull )
00263     class Private;
00264     Private *const d;
00265     //@endcond
00266 };
00267 
00268 }
00269 
00270 #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
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.4
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