summaryrefslogtreecommitdiffabout
path: root/libkcal/todo.h
Unidiff
Diffstat (limited to 'libkcal/todo.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libkcal/todo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libkcal/todo.h b/libkcal/todo.h
index 137b252..a22d4b7 100644
--- a/libkcal/todo.h
+++ b/libkcal/todo.h
@@ -91,44 +91,46 @@ class Todo : public Incidence
91 bool isCompleted() const; 91 bool isCompleted() const;
92 /** set completed state of this todo */ 92 /** set completed state of this todo */
93 void setCompleted(bool); 93 void setCompleted(bool);
94 94
95 /** 95 /**
96 Return how many percent of the task are completed. Returns a value 96 Return how many percent of the task are completed. Returns a value
97 between 0 and 100. 97 between 0 and 100.
98 */ 98 */
99 int percentComplete() const; 99 int percentComplete() const;
100 /** 100 /**
101 Set how many percent of the task are completed. Valid values are in the 101 Set how many percent of the task are completed. Valid values are in the
102 range from 0 to 100. 102 range from 0 to 100.
103 */ 103 */
104 void setPercentComplete(int); 104 void setPercentComplete(int);
105 105
106 /** return date and time when todo was completed */ 106 /** return date and time when todo was completed */
107 QDateTime completed() const; 107 QDateTime completed() const;
108 QString completedStr(bool shortF = true) const; 108 QString completedStr(bool shortF = true) const;
109 /** set date and time of completion */ 109 /** set date and time of completion */
110 void setCompleted(const QDateTime &completed); 110 void setCompleted(const QDateTime &completed);
111 111
112 /** Return true, if todo has a date associated with completion */ 112 /** Return true, if todo has a date associated with completion */
113 bool hasCompletedDate() const; 113 bool hasCompletedDate() const;
114 bool contains ( Todo*); 114 bool contains ( Todo*);
115 void checkSetCompletedFalse();
116 bool setRecurDates();
115 117
116 private: 118 private:
117 bool accept(Visitor &v) { return v.visit(this); } 119 bool accept(Visitor &v) { return v.visit(this); }
118 120
119 QDateTime mDtDue; // due date of todo 121 QDateTime mDtDue; // due date of todo
120 122
121 bool mHasDueDate; // if todo has associated due date 123 bool mHasDueDate; // if todo has associated due date
122 124
123// int mStatus; // confirmed/delegated/tentative/etc 125// int mStatus; // confirmed/delegated/tentative/etc
124 126
125 QDateTime mCompleted; 127 QDateTime mCompleted;
126 bool mHasCompletedDate; 128 bool mHasCompletedDate;
127 129
128 int mPercentComplete; 130 int mPercentComplete;
129}; 131};
130 132
131 bool operator==( const Todo&, const Todo& ); 133 bool operator==( const Todo&, const Todo& );
132} 134}
133 135
134#endif 136#endif