author | zecke <zecke> | 2002-11-15 21:43:59 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-11-15 21:43:59 (UTC) |
commit | a1306f7603ab9a05f7d0059fad60b68f01a0ae71 (patch) (side-by-side diff) | |
tree | 9af055fb6dea589ac5e5d93a7bf9f192b257c4c8 /libopie/pim/otodo.cpp | |
parent | 11116312592ada97b202f09c6e9ee57c9dd80b84 (diff) | |
download | opie-a1306f7603ab9a05f7d0059fad60b68f01a0ae71.zip opie-a1306f7603ab9a05f7d0059fad60b68f01a0ae71.tar.gz opie-a1306f7603ab9a05f7d0059fad60b68f01a0ae71.tar.bz2 |
Make OTodo compile
add the MaintainerMode to OTodo
-rw-r--r-- | libopie/pim/otodo.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/libopie/pim/otodo.cpp b/libopie/pim/otodo.cpp index 4d5cb79..6fcf9f6 100644 --- a/libopie/pim/otodo.cpp +++ b/libopie/pim/otodo.cpp @@ -16,2 +16,4 @@ #include "orecur.h" +#include "opimmaintainer.h" + #include "otodo.h" @@ -35,2 +37,3 @@ struct OTodo::OTodoData : public QShared { ORecur recur; + OPimMaintainer maintainer; }; @@ -155,2 +158,5 @@ ORecur OTodo::recurrence()const { } +OPimMaintainer OTodo::maintainer()const { + return data->maintainer; +} void OTodo::setCompleted( bool completed ) @@ -204,2 +210,6 @@ void OTodo::setRecurrence( const ORecur& rec) { } +void OTodo::setMaintainer( const OPimMaintainer& pim ) { + changeOrModify(); + data->maintainer = pim; +} bool OTodo::isOverdue( ) @@ -323,2 +333,4 @@ bool OTodo::operator==(const OTodo &toDoEvent )const return false; + if ( data->maintainer != toDoEvent.data->maintainer ) + return false; @@ -360,3 +372,3 @@ QMap<int, QString> OTodo::toMap() const { map.insert( Progress, QString::number( data->prog ) ); - map.insert( CrossReference, crossToString() ); +// map.insert( CrossReference, crossToString() ); map.insert( HasAlarmDateTime, QString::number( data->hasAlarmDateTime ) ); @@ -384,2 +396,7 @@ void OTodo::changeOrModify() { } +// WATCHOUT +/* + * if you add something to the Data struct + * be sure to copy it here + */ void OTodo::copy( OTodoData* src, OTodoData* dest ) { @@ -397,2 +414,3 @@ void OTodo::copy( OTodoData* src, OTodoData* dest ) { dest->recur = src->recur; + dest->maintainer = src->maintainer; } |