event.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KCAL_EVENT_H
00022 #define KCAL_EVENT_H
00023
00024 #include "incidence.h"
00025
00026 namespace KCal {
00027
00031 class Event : public Incidence
00032 {
00033 public:
00040 enum Transparency { Opaque, Transparent };
00041
00042 typedef ListBase<Event> List;
00043
00044 Event();
00045 Event( const Event & );
00046 ~Event();
00047 bool operator==( const Event & ) const;
00048
00049 QCString type() const { return "Event"; }
00050
00054 Event *clone();
00055
00059 void setDtEnd(const QDateTime &dtEnd);
00063 virtual QDateTime dtEnd() const;
00068 QString dtEndTimeStr() const;
00076 QString dtEndDateStr( bool shortfmt = true ) const;
00081 QString dtEndStr() const;
00082
00086 void setHasEndDate(bool);
00090 bool hasEndDate() const;
00091
00095 bool isMultiDay() const;
00096
00100 void setTransparency( Transparency transparency );
00104 Transparency transparency() const;
00105
00109 void setDuration( int seconds );
00110
00111 private:
00112 bool accept( Visitor &v ) { return v.visit( this ); }
00113
00114 QDateTime mDtEnd;
00115 bool mHasEndDate;
00116 Transparency mTransparency;
00117
00118 class Private;
00119 Private *d;
00120 };
00121
00122 }
00123
00124 #endif
This file is part of the documentation for libkcal Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Mar 6 17:18:02 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003