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

KCal Library

calendarlocal.h
Go to the documentation of this file.
00001 /*
00002   This file is part of the kcal library.
00003 
00004   Copyright (c) 1998 Preston Brown <pbrown@kde.org>
00005   Copyright (c) 2001,2003 Cornelius Schumacher <schumacher@kde.org>
00006 
00007   This library is free software; you can redistribute it and/or
00008   modify it under the terms of the GNU Library General Public
00009   License as published by the Free Software Foundation; either
00010   version 2 of the License, or (at your option) any later version.
00011 
00012   This library is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015   Library General Public License for more details.
00016 
00017   You should have received a copy of the GNU Library General Public License
00018   along with this library; see the file COPYING.LIB.  If not, write to
00019   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020   Boston, MA 02110-1301, USA.
00021 */
00030 #ifndef KCAL_CALENDARLOCAL_H
00031 #define KCAL_CALENDARLOCAL_H
00032 
00033 #include "calendar.h"
00034 
00035 namespace KCal {
00036 
00037 class CalFormat;
00038 
00043 class KCAL_EXPORT_DEPRECATED CalendarLocal : public Calendar
00044 {
00045   public:
00050     explicit CalendarLocal( const KDateTime::Spec &timeSpec );
00051 
00056     explicit CalendarLocal( const QString &timeZoneId );
00057 
00062     ~CalendarLocal();
00063 
00080     bool load( const QString &fileName, CalFormat *format = 0 );
00081 
00087     bool reload();
00088 
00096     bool save();
00097 
00108     bool save( const QString &fileName, CalFormat *format = 0 );
00109 
00113     void close();
00114 
00115   // Event Specific Methods //
00116 
00121     bool addEvent( Event *event );
00122 
00127     bool deleteEvent( Event *event );
00128 
00133     void deleteAllEvents();
00134 
00139     Event::List rawEvents(
00140       EventSortField sortField = EventSortUnsorted,
00141       SortDirection sortDirection = SortDirectionAscending );
00142 
00147     Event::List rawEvents( const QDate &start, const QDate &end,
00148                            const KDateTime::Spec &timeSpec = KDateTime::Spec(),
00149                            bool inclusive = false );
00150 
00162     Event::List rawEventsForDate(
00163       const QDate &date, const KDateTime::Spec &timeSpec = KDateTime::Spec(),
00164       EventSortField sortField = EventSortUnsorted,
00165       SortDirection sortDirection = SortDirectionAscending );
00166 
00171     Event::List rawEventsForDate( const KDateTime &dt );
00172 
00177     Event *event( const QString &uid );
00178 
00179   // To-do Specific Methods //
00180 
00185     bool addTodo( Todo *todo );
00186 
00191     bool deleteTodo( Todo *todo );
00192 
00197     void deleteAllTodos();
00198 
00203     Todo::List rawTodos(
00204       TodoSortField sortField = TodoSortUnsorted,
00205       SortDirection sortDirection = SortDirectionAscending );
00206 
00211     Todo::List rawTodosForDate( const QDate &date );
00212 
00217     Todo *todo( const QString &uid );
00218 
00219   // Journal Specific Methods //
00220 
00225     bool addJournal( Journal *journal );
00226 
00231     bool deleteJournal( Journal *journal );
00232 
00237     void deleteAllJournals();
00238 
00243     Journal::List rawJournals(
00244       JournalSortField sortField = JournalSortUnsorted,
00245       SortDirection sortDirection = SortDirectionAscending );
00246 
00251     Journal::List rawJournalsForDate( const QDate &date );
00252 
00257     Journal *journal( const QString &uid );
00258 
00259   // Alarm Specific Methods //
00260 
00265     Alarm::List alarms( const KDateTime &from, const KDateTime &to );
00266 
00273     Alarm::List alarmsTo( const KDateTime &to );
00274 
00280     void incidenceUpdated( IncidenceBase *incidenceBase );
00281 
00282     using QObject::event;   // prevent warning about hidden virtual method
00283 
00284   private:
00285     //@cond PRIVATE
00286     Q_DISABLE_COPY( CalendarLocal )
00287     class Private;
00288     Private *const d;
00289     //@endcond
00290 };
00291 
00292 }
00293 
00294 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Apr 30 2012 21:49:42 by doxygen 1.8.0 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
  • Related Pages

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • 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
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