summaryrefslogtreecommitdiff
path: root/libopie/pim/orecur.h
Unidiff
Diffstat (limited to 'libopie/pim/orecur.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/orecur.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie/pim/orecur.h b/libopie/pim/orecur.h
index 89258f8..d24d72d 100644
--- a/libopie/pim/orecur.h
+++ b/libopie/pim/orecur.h
@@ -10,45 +10,47 @@
10#include <qdatetime.h> 10#include <qdatetime.h>
11 11
12 12
13 13
14class ORecur { 14class ORecur {
15public: 15public:
16 enum RepeatType{ NoRepeat = -1, Daily, Weekly, MonthlyDay, 16 enum RepeatType{ NoRepeat = -1, Daily, Weekly, MonthlyDay,
17 MonthlyDate, Yearly }; 17 MonthlyDate, Yearly };
18 enum Days { MON = 0x01, TUE = 0x02, WED = 0x04, THU = 0x08, 18 enum Days { MON = 0x01, TUE = 0x02, WED = 0x04, THU = 0x08,
19 FRI = 0x10, SAT = 0x20, SUN = 0x40 }; 19 FRI = 0x10, SAT = 0x20, SUN = 0x40 };
20 ORecur(); 20 ORecur();
21 ORecur( const ORecur& ); 21 ORecur( const ORecur& );
22 ~ORecur(); 22 ~ORecur();
23 23
24 ORecur &operator=( const ORecur& ); 24 ORecur &operator=( const ORecur& );
25 bool operator==(const ORecur& )const; 25 bool operator==(const ORecur& )const;
26 RepeatType type()const; 26 RepeatType type()const;
27 int frequency()const; 27 int frequency()const;
28 int position()const; 28 int position()const;
29 char days()const; 29 char days()const;
30 bool hasEndDate()const; 30 bool hasEndDate()const;
31 QDate endDate()const; 31 QDate endDate()const;
32 time_t endDateUTC()const; 32 time_t endDateUTC()const;
33 time_t createTime()const; 33 time_t createTime()const;
34 int repetition()const;
34 35
35 void setType( const RepeatType& ); 36 void setType( const RepeatType& );
36 void setFrequency( int freq ); 37 void setFrequency( int freq );
37 void setPosition( int pos ); 38 void setPosition( int pos );
38 void setDays( char c); 39 void setDays( char c);
39 void setEndDate( const QDate& dt ); 40 void setEndDate( const QDate& dt );
40 void setEndDateUTC( time_t ); 41 void setEndDateUTC( time_t );
41 void setCreateTime( time_t ); 42 void setCreateTime( time_t );
42 void setHasEndDate( bool b ); 43 void setHasEndDate( bool b );
44 void setRepitition(int );
43private: 45private:
44 void deref(); 46 void deref();
45 inline void checkOrModify(); 47 inline void checkOrModify();
46 48
47 49
48 class Data; 50 class Data;
49 Data* data; 51 Data* data;
50 class ORecurPrivate; 52 class ORecurPrivate;
51 ORecurPrivate *d; 53 ORecurPrivate *d;
52}; 54};
53 55
54#endif 56#endif