-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 @@ -20,8 +20,9 @@ struct ORecur::Data : public QShared { int pos; bool hasEnd : 1; time_t end; time_t create; + int rep; }; ORecur::ORecur() { @@ -77,8 +78,11 @@ time_t ORecur::endDateUTC()const { } time_t ORecur::createTime()const { return data->create; } +int ORecur::repetition()const { + return data->rep; +} void ORecur::setType( const RepeatType& z) { checkOrModify(); data->type = z; } @@ -109,8 +113,12 @@ void ORecur::setCreateTime( time_t t) { void ORecur::setHasEndDate( bool b) { checkOrModify(); data->hasEnd = b; } +void ORecur::setRepitition( int rep ) { + checkOrModify(); + data->rep = rep; +} void ORecur::checkOrModify() { if ( data->count != 1 ) { data->deref(); Data* d2 = new Data; @@ -120,8 +128,9 @@ void ORecur::checkOrModify() { d2->pos = data->pos; d2->hasEnd = data->hasEnd; d2->end = data->end; d2->create = data->create; + d2->rep = data->rep; data = d2; } } |