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

KCal Library

freebusy.h

Go to the documentation of this file.
00001 /*
00002   This file is part of the kcal library.
00003 
00004   Copyright (c) 2001-2003 Cornelius Schumacher <schumacher@kde.org>
00005   Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
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 */
00031 #ifndef KCAL_FREEBUSY_H
00032 #define KCAL_FREEBUSY_H
00033 
00034 #include "incidencebase.h"
00035 #include "freebusyperiod.h"
00036 
00037 #include <QtCore/QByteArray>
00038 
00039 namespace KCal {
00040 
00041 class Calendar;
00042 
00049 class KCAL_EXPORT FreeBusy : public IncidenceBase
00050 {
00051   public:
00055     FreeBusy();
00056 
00061     FreeBusy( const FreeBusy &other );
00062 
00068     explicit FreeBusy( const Period::List &busyPeriods );
00069 
00075     explicit FreeBusy( const FreeBusyPeriod::List &busyPeriods );
00076 
00083     FreeBusy( const KDateTime &start, const KDateTime &end );
00084 
00092     FreeBusy( Calendar *calendar, const KDateTime &start, const KDateTime &end );
00093 
00097     ~FreeBusy();
00098 
00103     QByteArray type() const;
00104 
00112     virtual void setDtStart( const KDateTime &start );
00113 
00121     void setDtEnd( const KDateTime &end );
00122 
00128     virtual KDateTime dtEnd() const;
00129 
00134     virtual void shiftTimes( const KDateTime::Spec &oldSpec,
00135                              const KDateTime::Spec &newSpec );
00136 
00140     Period::List busyPeriods() const;
00141 
00145     FreeBusyPeriod::List fullBusyPeriods() const;
00146 
00153     void addPeriod( const KDateTime &start, const KDateTime &end );
00154 
00161     void addPeriod( const KDateTime &start, const Duration &duration );
00162 
00170     void addPeriods( const Period::List &list );
00171 
00179     void addPeriods( const FreeBusyPeriod::List &list );
00180 
00184     void sortList();
00185 
00191     void merge( FreeBusy *freebusy );
00192 
00196     FreeBusy &operator=( const FreeBusy &other );
00197 
00203     bool operator==( const FreeBusy &freebusy ) const;
00204 
00205   private:
00210     bool accept( Visitor &v ) { return v.visit( this ); }
00211 
00212     //@cond PRIVATE
00213     class Private;
00214     Private *const d;
00215     //@endcond
00216 };
00217 
00218 }
00219 
00220 #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
  • 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.5.8
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