-rw-r--r-- | libkcal/todo.h | 2 |
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 | |||
@@ -67,68 +67,70 @@ class Todo : public Incidence | |||
67 | - overdue, or | 67 | - overdue, or |
68 | - due today. | 68 | - due today. |
69 | It returns 0 for nothing found, | 69 | It returns 0 for nothing found, |
70 | 1 for found a todo which is due today and no overdue found | 70 | 1 for found a todo which is due today and no overdue found |
71 | 2 for found a overdue todo | 71 | 2 for found a overdue todo |
72 | */ | 72 | */ |
73 | int hasDueSubTodo( bool checkSubtodos = true ); | 73 | int hasDueSubTodo( bool checkSubtodos = true ); |
74 | /* same as above, but a specific date can be specified*/ | 74 | /* same as above, but a specific date can be specified*/ |
75 | int hasDueSubTodoForDate( const QDate & date, bool checkSubtodos ); | 75 | int hasDueSubTodoForDate( const QDate & date, bool checkSubtodos ); |
76 | 76 | ||
77 | 77 | ||
78 | /** sets the event's status to the string specified. The string | 78 | /** sets the event's status to the string specified. The string |
79 | * must be a recognized value for the status field, i.e. a string | 79 | * must be a recognized value for the status field, i.e. a string |
80 | * equivalent of the possible status enumerations previously described. */ | 80 | * equivalent of the possible status enumerations previously described. */ |
81 | // void setStatus(const QString &statStr); | 81 | // void setStatus(const QString &statStr); |
82 | /** sets the event's status to the value specified. See the enumeration | 82 | /** sets the event's status to the value specified. See the enumeration |
83 | * above for possible values. */ | 83 | * above for possible values. */ |
84 | // void setStatus(int); | 84 | // void setStatus(int); |
85 | /** return the event's status. */ | 85 | /** return the event's status. */ |
86 | // int status() const; | 86 | // int status() const; |
87 | /** return the event's status in string format. */ | 87 | /** return the event's status in string format. */ |
88 | // QString statusStr() const; | 88 | // QString statusStr() const; |
89 | 89 | ||
90 | /** return, if this todo is completed */ | 90 | /** return, if this todo is completed */ |
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 |