summaryrefslogtreecommitdiff
path: root/library/backend/task.h
Side-by-side diff
Diffstat (limited to 'library/backend/task.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/backend/task.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/library/backend/task.h b/library/backend/task.h
index 6f383b8..091f2e9 100644
--- a/library/backend/task.h
+++ b/library/backend/task.h
@@ -1,5 +1,5 @@
/**********************************************************************
-** Copyright (C) 2001 Trolltech AS. All rights reserved.
+** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
**
-** This file is part of Qtopia Environment.
+** This file is part of the Qtopia Environment.
**
@@ -22,4 +22,4 @@
-#include <qpe/palmtoprecord.h>
-#include <qpe/stringutil.h>
+#include <qtopia/private/palmtoprecord.h>
+#include <qtopia/stringutil.h>
@@ -42,2 +42,4 @@ public:
+ enum PriorityValue { VeryHigh=1, High, Normal, Low, VeryLow };
+
void setPriority( int priority ) { mPriority = priority; }
@@ -53,6 +55,12 @@ public:
+ // Use THESE functions
+ void setDueDate( const QDate &date);
+ void clearDueDate();
+
+ // Instead of these functions.
void setDueDate( const QDate& date, bool hasDue ) { mDueDate = date; mDue = hasDue; }
+ void setHasDueDate( bool b ) { mDue = b; }
+
const QDate &dueDate() const { return mDueDate; }
bool hasDueDate() const { return mDue; }
- void setHasDueDate( bool b ) { mDue = b; }
@@ -80,2 +88,5 @@ private:
+// MUST be inline. (forwards compatability).
+inline void Task::setDueDate( const QDate &date) { setDueDate(date, date.isValid()); }
+inline void Task::clearDueDate() { setHasDueDate( FALSE ); }
#endif