author | zautrix <zautrix> | 2005-09-25 01:04:17 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-09-25 01:04:17 (UTC) |
commit | bd991f0a33d85385735ed4911b794b8740e4d296 (patch) (unidiff) | |
tree | f69fdacca2283e2602619e24bcbc30b46998d298 /libkcal/todo.h | |
parent | bada5cffd8f1b5f4f3719299e3615d7d06a1f0dc (diff) | |
download | kdepimpi-bd991f0a33d85385735ed4911b794b8740e4d296.zip kdepimpi-bd991f0a33d85385735ed4911b794b8740e4d296.tar.gz kdepimpi-bd991f0a33d85385735ed4911b794b8740e4d296.tar.bz2 |
todo timer fix
-rw-r--r-- | libkcal/todo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libkcal/todo.h b/libkcal/todo.h index 7feb32e..e6b8a21 100644 --- a/libkcal/todo.h +++ b/libkcal/todo.h | |||
@@ -102,55 +102,59 @@ namespace KCal { | |||
102 | */ | 102 | */ |
103 | int percentComplete() const; | 103 | int percentComplete() const; |
104 | /** | 104 | /** |
105 | Set how many percent of the task are completed. Valid values are in the | 105 | Set how many percent of the task are completed. Valid values are in the |
106 | range from 0 to 100. | 106 | range from 0 to 100. |
107 | */ | 107 | */ |
108 | void setPercentComplete(int); | 108 | void setPercentComplete(int); |
109 | 109 | ||
110 | /** return date and time when todo was completed */ | 110 | /** return date and time when todo was completed */ |
111 | QDateTime completed() const; | 111 | QDateTime completed() const; |
112 | QString completedStr(bool shortF = true) const; | 112 | QString completedStr(bool shortF = true) const; |
113 | /** set date and time of completion */ | 113 | /** set date and time of completion */ |
114 | void setCompleted(const QDateTime &completed); | 114 | void setCompleted(const QDateTime &completed); |
115 | 115 | ||
116 | /** Return true, if todo has a date associated with completion */ | 116 | /** Return true, if todo has a date associated with completion */ |
117 | bool hasCompletedDate() const; | 117 | bool hasCompletedDate() const; |
118 | bool contains ( Todo*); | 118 | bool contains ( Todo*); |
119 | void checkSetCompletedFalse(); | 119 | void checkSetCompletedFalse(); |
120 | bool setRecurDates(); | 120 | bool setRecurDates(); |
121 | bool isRunning() {return mRunning;} | 121 | bool isRunning() {return mRunning;} |
122 | bool hasRunningSub(); | 122 | bool hasRunningSub(); |
123 | void setRunning( bool ); | 123 | void setRunning( bool ); |
124 | void setRunningFalse( QString ); | 124 | void setRunningFalse( QString ); |
125 | void stopRunning(); | 125 | void stopRunning(); |
126 | int runTime(); | 126 | int runTime(); |
127 | QDateTime runStart () const { return mRunStart;} | 127 | QDateTime runStart () const { return mRunStart;} |
128 | void saveRunningInfo( QString comment, QDateTime start, QDateTime end ); | 128 | void saveRunningInfo( QString comment, QDateTime start, QDateTime end ); |
129 | public slots: | 129 | public slots: |
130 | void saveRunningInfoToFile( QString st ); | 130 | void saveRunningInfoToFile( QString st ); |
131 | void saveRunningInfoToFile( ); | 131 | void saveRunningInfoToFile( ); |
132 | void saveParents(); | 132 | void saveParents(); |
133 | QString durationText(); | 133 | QString durationText(); |
134 | private slots: | ||
135 | void timerSlotSaveRunningInfoToFile( ); | ||
134 | private: | 136 | private: |
137 | int mCurrentTimerDelay; | ||
135 | bool mRunning; | 138 | bool mRunning; |
136 | QTimer * mRunSaveTimer; | 139 | QTimer * mRunSaveTimer; |
137 | QDateTime mRunStart; | 140 | QDateTime mRunStart; |
141 | QDateTime mRunLastSave; | ||
138 | QDateTime mRunEnd; | 142 | QDateTime mRunEnd; |
139 | bool accept(Visitor &v) { return v.visit(this); } | 143 | bool accept(Visitor &v) { return v.visit(this); } |
140 | 144 | ||
141 | QDateTime mDtDue; // due date of todo | 145 | QDateTime mDtDue; // due date of todo |
142 | 146 | ||
143 | bool mHasDueDate; // if todo has associated due date | 147 | bool mHasDueDate; // if todo has associated due date |
144 | 148 | ||
145 | // int mStatus; // confirmed/delegated/tentative/etc | 149 | // int mStatus; // confirmed/delegated/tentative/etc |
146 | 150 | ||
147 | QDateTime mCompleted; | 151 | QDateTime mCompleted; |
148 | bool mHasCompletedDate; | 152 | bool mHasCompletedDate; |
149 | 153 | ||
150 | int mPercentComplete; | 154 | int mPercentComplete; |
151 | }; | 155 | }; |
152 | 156 | ||
153 | bool operator==( const Todo&, const Todo& ); | 157 | bool operator==( const Todo&, const Todo& ); |
154 | } | 158 | } |
155 | 159 | ||
156 | #endif | 160 | #endif |