KCalCore Library
freebusyperiod.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00032 #ifndef KCALCORE_FREEBUSYPERIOD_H
00033 #define KCALCORE_FREEBUSYPERIOD_H
00034
00035 #include "kcalcore_export.h"
00036 #include "period.h"
00037
00038 #include <QtCore/QMetaType>
00039
00040 namespace KCalCore {
00041
00046 class KCALCORE_EXPORT FreeBusyPeriod : public Period
00047 {
00048 public:
00052 typedef QVector<FreeBusyPeriod> List;
00053
00057 FreeBusyPeriod();
00058
00065 FreeBusyPeriod( const KDateTime &start, const KDateTime &end );
00066
00073 FreeBusyPeriod( const KDateTime &start, const Duration &duration );
00074
00081 FreeBusyPeriod( const FreeBusyPeriod &period );
00082
00089 FreeBusyPeriod( const Period &period );
00090
00094 ~FreeBusyPeriod();
00095
00101 FreeBusyPeriod &operator=( const FreeBusyPeriod &other );
00102
00108 void setSummary( const QString &summary );
00109
00114 QString summary() const;
00115
00121 void setLocation( const QString &location );
00122
00127 QString location() const;
00128
00129 private:
00130
00131 class Private;
00132 Private *const d;
00133
00134
00135 friend KCALCORE_EXPORT QDataStream &operator<<( QDataStream &stream,
00136 const KCalCore::FreeBusyPeriod &period );
00137 friend KCALCORE_EXPORT QDataStream &operator>>( QDataStream &stream,
00138 KCalCore::FreeBusyPeriod &period );
00139 };
00140
00142 KCALCORE_EXPORT QDataStream &operator<<( QDataStream &stream,
00143 const KCalCore::FreeBusyPeriod &period );
00144
00146 KCALCORE_EXPORT QDataStream &operator>>( QDataStream &stream, KCalCore::FreeBusyPeriod &period );
00147 }
00148
00149
00150 Q_DECLARE_METATYPE( KCalCore::FreeBusyPeriod )
00151
00152
00153 #endif