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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libopie/pim/orecur.h b/libopie/pim/orecur.h
index 1e0014b..b214b3f 100644
--- a/libopie/pim/orecur.h
+++ b/libopie/pim/orecur.h
@@ -28,60 +28,64 @@ public:
28 bool doesRecur()const; 28 bool doesRecur()const;
29 /* if it recurrs on that day */ 29 /* if it recurrs on that day */
30 bool doesRecur( const QDate& ); 30 bool doesRecur( const QDate& );
31 RepeatType type()const; 31 RepeatType type()const;
32 int frequency()const; 32 int frequency()const;
33 int position()const; 33 int position()const;
34 char days()const; 34 char days()const;
35 bool hasEndDate()const; 35 bool hasEndDate()const;
36 QDate start()const; 36 QDate start()const;
37 QDate endDate()const; 37 QDate endDate()const;
38 QDateTime createdDateTime()const; 38 QDateTime createdDateTime()const;
39 /** 39 /**
40 * starting on monday=0, sunday=6 40 * starting on monday=0, sunday=6
41 * for convience 41 * for convience
42 */ 42 */
43 bool repeatOnWeekDay( int day )const; 43 bool repeatOnWeekDay( int day )const;
44 44
45 /** 45 /**
46 * FromWhereToStart is not included!!! 46 * FromWhereToStart is not included!!!
47 */ 47 */
48 bool nextOcurrence( const QDate& FromWhereToStart, QDate &recurDate ); 48 bool nextOcurrence( const QDate& FromWhereToStart, QDate &recurDate );
49 49
50 /** 50 /**
51 * The module this ORecur belongs to 51 * The module this ORecur belongs to
52 */ 52 */
53 QString service()const; 53 QString service()const;
54 54
55 /* 55 /*
56 * reference to the exception list 56 * reference to the exception list
57 */ 57 */
58 ExceptionList &exceptions(); 58 ExceptionList &exceptions();
59 59
60 /** 60 /**
61 * the current repetition 61 * the current repetition
62 */ 62 */
63 int repetition()const; 63 int repetition()const;
64 64
65 void setType( const RepeatType& ); 65 void setType( const RepeatType& );
66 void setFrequency( int freq ); 66 void setFrequency( int freq );
67 void setPosition( int pos ); 67 void setPosition( int pos );
68 void setDays( char c); 68 void setDays( char c);
69 void setEndDate( const QDate& dt ); 69 void setEndDate( const QDate& dt );
70 void setStart( const QDate& dt ); 70 void setStart( const QDate& dt );
71 void setCreatedDateTime( const QDateTime& ); 71 void setCreatedDateTime( const QDateTime& );
72 void setHasEndDate( bool b ); 72 void setHasEndDate( bool b );
73 void setRepitition(int ); 73 void setRepitition(int );
74 74
75 void setService( const QString& ser ); 75 void setService( const QString& ser );
76
77 /* almost internal */
78 QString toString()const;
76private: 79private:
80 bool p_nextOccurrence( const QDate& from, QDate& next );
77 void deref(); 81 void deref();
78 inline void checkOrModify(); 82 inline void checkOrModify();
79 83
80 84
81 class Data; 85 class Data;
82 Data* data; 86 Data* data;
83 class ORecurPrivate; 87 class ORecurPrivate;
84 ORecurPrivate *d; 88 ORecurPrivate *d;
85}; 89};
86 90
87#endif 91#endif