-rw-r--r-- | libkcal/event.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libkcal/event.h b/libkcal/event.h index 6a58618..da44f81 100644 --- a/libkcal/event.h +++ b/libkcal/event.h | |||
@@ -12,48 +12,50 @@ | |||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #ifndef EVENT_H | 21 | #ifndef EVENT_H |
22 | #define EVENT_H | 22 | #define EVENT_H |
23 | // | 23 | // |
24 | // Event component, representing a VEVENT object | 24 | // Event component, representing a VEVENT object |
25 | // | 25 | // |
26 | 26 | ||
27 | #include "incidence.h" | 27 | #include "incidence.h" |
28 | //Added by qt3to4: | ||
29 | #include <Q3CString> | ||
28 | namespace KCal { | 30 | namespace KCal { |
29 | 31 | ||
30 | /** | 32 | /** |
31 | This class provides an Event in the sense of RFC2445. | 33 | This class provides an Event in the sense of RFC2445. |
32 | */ | 34 | */ |
33 | class Event : public Incidence | 35 | class Event : public Incidence |
34 | { | 36 | { |
35 | public: | 37 | public: |
36 | enum Transparency { Opaque, Transparent }; | 38 | enum Transparency { Opaque, Transparent }; |
37 | typedef ListBase<Event> List; | 39 | typedef ListBase<Event> List; |
38 | Event(); | 40 | Event(); |
39 | Event(const Event &); | 41 | Event(const Event &); |
40 | ~Event(); | 42 | ~Event(); |
41 | bool matchTime(QDateTime*startDT, QDateTime* endDT); | 43 | bool matchTime(QDateTime*startDT, QDateTime* endDT); |
42 | 44 | ||
43 | QCString type() const { return "Event"; } | 45 | Q3CString type() const { return "Event"; } |
44 | IncTypeID typeID() const { return eventID; } | 46 | IncTypeID typeID() const { return eventID; } |
45 | 47 | ||
46 | Incidence *clone(); | 48 | Incidence *clone(); |
47 | QDateTime getNextAlarmDateTime( bool * ok, int * offset ,QDateTime start_dt ) const; | 49 | QDateTime getNextAlarmDateTime( bool * ok, int * offset ,QDateTime start_dt ) const; |
48 | 50 | ||
49 | /** for setting an event's ending date/time with a QDateTime. */ | 51 | /** for setting an event's ending date/time with a QDateTime. */ |
50 | void setDtEnd(const QDateTime &dtEnd); | 52 | void setDtEnd(const QDateTime &dtEnd); |
51 | /** Return the event's ending date/time as a QDateTime. */ | 53 | /** Return the event's ending date/time as a QDateTime. */ |
52 | virtual QDateTime dtEnd() const; | 54 | virtual QDateTime dtEnd() const; |
53 | /** returns an event's end time as a string formatted according to the | 55 | /** returns an event's end time as a string formatted according to the |
54 | users locale settings */ | 56 | users locale settings */ |
55 | QString dtEndTimeStr() const; | 57 | QString dtEndTimeStr() const; |
56 | /** returns an event's end date as a string formatted according to the | 58 | /** returns an event's end date as a string formatted according to the |
57 | users locale settings */ | 59 | users locale settings */ |
58 | QString dtEndDateStr(bool shortfmt=true) const; | 60 | QString dtEndDateStr(bool shortfmt=true) const; |
59 | /** returns an event's end date and time as a string formatted according | 61 | /** returns an event's end date and time as a string formatted according |