summaryrefslogtreecommitdiff
path: root/libopie/todoevent.h
Side-by-side diff
Diffstat (limited to 'libopie/todoevent.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/todoevent.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libopie/todoevent.h b/libopie/todoevent.h
index 7454241..de4623f 100644
--- a/libopie/todoevent.h
+++ b/libopie/todoevent.h
@@ -21,16 +21,17 @@ class ToDoEvent {
@param hasDate Does this Event got a deadline
@param date what is the deadline?
@param uid what is the UUID of this Event
**/
ToDoEvent( bool completed = false, int priority = NORMAL,
const QStringList &category = QStringList(),
const QString &summary = QString::null ,
const QString &description = QString::null,
+ ushort progress = 0,
bool hasDate = false, QDate date = QDate::currentDate(), int uid = -1 );
/* Copy c'tor
**/
ToDoEvent(const ToDoEvent & );
/*
Is this event completed?
@@ -42,16 +43,20 @@ class ToDoEvent {
**/
bool hasDate() const;
/*
What is the priority?
**/
int priority()const ;
+ /**
+ * progress as ushort 0, 20, 40, 60, 80 or 100%
+ */
+ ushort progress() const;
/*
All category numbers as QString in a List
**/
QStringList allCategories()const;
/*
* Same as above but with QArray<int>
*/
@@ -110,16 +115,21 @@ class ToDoEvent {
void setCategories(const QStringList& );
/**
* Set the priority of the Todo
*/
void setPriority(int priority );
/**
+ * Set the progress.
+ */
+ void setProgress( ushort progress );
+
+ /**
* set the end date
*/
void setDate( QDate date );
void setDescription(const QString& );
void setSummary(const QString& );
void setExtra( const QString&, const QString& );
bool isOverdue();
@@ -140,12 +150,13 @@ class ToDoEvent {
bool m_isCompleted:1;
bool m_hasDate:1;
int m_priority;
QStringList m_category;
QString m_desc;
QString m_sum;
QMap<QString, QString> m_extra;
int m_uid;
+ ushort m_prog;
};
#endif