-rw-r--r-- | libopie/pim/orecur.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libopie/pim/orecur.cpp b/libopie/pim/orecur.cpp index 6c81f8f..257d4fd 100644 --- a/libopie/pim/orecur.cpp +++ b/libopie/pim/orecur.cpp @@ -22,4 +22,5 @@ struct ORecur::Data : public QShared { time_t end; time_t create; + int rep; }; @@ -79,4 +80,7 @@ time_t ORecur::createTime()const { return data->create; } +int ORecur::repetition()const { + return data->rep; +} void ORecur::setType( const RepeatType& z) { checkOrModify(); @@ -111,4 +115,8 @@ void ORecur::setHasEndDate( bool b) { data->hasEnd = b; } +void ORecur::setRepitition( int rep ) { + checkOrModify(); + data->rep = rep; +} void ORecur::checkOrModify() { if ( data->count != 1 ) { @@ -122,4 +130,5 @@ void ORecur::checkOrModify() { d2->end = data->end; d2->create = data->create; + d2->rep = data->rep; data = d2; } |