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

KCal Library

calendarnull.cpp

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 */
00032 #include "calendarnull.h"
00033 
00034 using namespace KCal;
00035 
00040 //@cond PRIVATE
00041 class KCal::CalendarNull::Private
00042 {
00043 };
00044 static CalendarNull *mSelf = 0;
00045 //@endcond
00046 
00047 CalendarNull::CalendarNull( const KDateTime::Spec &timeSpec )
00048   : Calendar( timeSpec ),
00049     d( new KCal::CalendarNull::Private )
00050 {}
00051 
00052 CalendarNull::CalendarNull( const QString &timeZoneId )
00053   : Calendar( timeZoneId ),
00054     d( new KCal::CalendarNull::Private )
00055 {}
00056 
00057 CalendarNull::~CalendarNull()
00058 {
00059   delete d;
00060 }
00061 
00062 CalendarNull *CalendarNull::self()
00063 {
00064   if ( !mSelf ) {
00065     mSelf = new CalendarNull( KDateTime::UTC );
00066   }
00067 
00068   return mSelf;
00069 }
00070 
00071 void CalendarNull::close()
00072 {
00073 }
00074 
00075 bool CalendarNull::save()
00076 {
00077   return true;
00078 }
00079 
00080 bool CalendarNull::reload()
00081 {
00082   return true;
00083 }
00084 
00085 bool CalendarNull::addEvent( Event *event )
00086 {
00087   Q_UNUSED ( event );
00088   return false;
00089 }
00090 
00091 bool CalendarNull::deleteEvent( Event *event )
00092 {
00093   Q_UNUSED( event );
00094   return false;
00095 }
00096 
00097 void CalendarNull::deleteAllEvents()
00098 {
00099 }
00100 
00101 Event::List CalendarNull::rawEvents( EventSortField sortField,
00102                                      SortDirection sortDirection )
00103 {
00104   Q_UNUSED( sortField );
00105   Q_UNUSED( sortDirection );
00106   return Event::List();
00107 }
00108 
00109 Event::List CalendarNull::rawEvents( const QDate &start, const QDate &end,
00110                                      const KDateTime::Spec &timeSpec,
00111                                      bool inclusive )
00112 {
00113   Q_UNUSED( start );
00114   Q_UNUSED( end );
00115   Q_UNUSED( timeSpec );
00116   Q_UNUSED( inclusive );
00117   return Event::List();
00118 }
00119 
00120 Event::List CalendarNull::rawEventsForDate( const QDate &date,
00121                                             const KDateTime::Spec &timeSpec,
00122                                             EventSortField sortField,
00123                                             SortDirection sortDirection )
00124 {
00125   Q_UNUSED( date );
00126   Q_UNUSED( timeSpec );
00127   Q_UNUSED( sortField );
00128   Q_UNUSED( sortDirection );
00129   return Event::List();
00130 }
00131 
00132 Event::List CalendarNull::rawEventsForDate( const KDateTime &dt )
00133 {
00134   Q_UNUSED( dt );
00135   return Event::List();
00136 }
00137 
00138 Event *CalendarNull::event( const QString &uid )
00139 {
00140   Q_UNUSED( uid );
00141   return 0;
00142 }
00143 
00144 bool CalendarNull::addTodo( Todo *todo )
00145 {
00146   Q_UNUSED( todo );
00147   return false;
00148 }
00149 
00150 bool CalendarNull::deleteTodo( Todo *todo )
00151 {
00152   Q_UNUSED( todo );
00153   return false;
00154 }
00155 
00156 void CalendarNull::deleteAllTodos()
00157 {
00158 }
00159 
00160 Todo::List CalendarNull::rawTodos( TodoSortField sortField,
00161                                    SortDirection sortDirection )
00162 {
00163   Q_UNUSED( sortField );
00164   Q_UNUSED( sortDirection );
00165   return Todo::List();
00166 }
00167 
00168 Todo::List CalendarNull::rawTodosForDate( const QDate &date )
00169 {
00170   Q_UNUSED( date );
00171   return Todo::List();
00172 }
00173 
00174 Todo *CalendarNull::todo( const QString &uid )
00175 {
00176   Q_UNUSED( uid );
00177   return 0;
00178 }
00179 
00180 bool CalendarNull::addJournal( Journal *journal )
00181 {
00182   Q_UNUSED( journal );
00183   return false;
00184 }
00185 
00186 bool CalendarNull::deleteJournal( Journal *journal )
00187 {
00188   Q_UNUSED( journal );
00189   return false;
00190 }
00191 
00192 void CalendarNull::deleteAllJournals()
00193 {
00194 }
00195 
00196 Journal::List CalendarNull::rawJournals( JournalSortField sortField,
00197                                          SortDirection sortDirection )
00198 {
00199   Q_UNUSED( sortField );
00200   Q_UNUSED( sortDirection );
00201   return Journal::List();
00202 }
00203 
00204 Journal::List CalendarNull::rawJournalsForDate( const QDate &date )
00205 {
00206   Q_UNUSED( date );
00207   return Journal::List();
00208 }
00209 
00210 Journal *CalendarNull::journal( const QString &uid )
00211 {
00212   Q_UNUSED( uid );
00213   return 0;
00214 }
00215 
00216 Alarm::List CalendarNull::alarms( const KDateTime &from, const KDateTime &to )
00217 {
00218   Q_UNUSED( from );
00219   Q_UNUSED( to );
00220   return Alarm::List();
00221 }
00222 
00223 void CalendarNull::incidenceUpdated( IncidenceBase *incidenceBase )
00224 {
00225   Q_UNUSED( incidenceBase );
00226 }

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
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
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