Diffstat (limited to 'libopie2/opiepim/core/orecur.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/orecur.cpp | 76 |
1 files changed, 71 insertions, 5 deletions
diff --git a/libopie2/opiepim/core/orecur.cpp b/libopie2/opiepim/core/orecur.cpp index 033f264..5e2da25 100644 --- a/libopie2/opiepim/core/orecur.cpp +++ b/libopie2/opiepim/core/orecur.cpp @@ -29,12 +29,16 @@ -#include <time.h> +#include "orecur.h" -#include <qshared.h> +/* OPIE */ +#include <opie2/otimezone.h> +#include <qpe/timeconversion.h> -#include <qtopia/timeconversion.h> +/* QT */ +#include <qshared.h> -#include <opie2/otimezone.h> -#include <opie2/orecur.h> +/* STD */ +#include <time.h> namespace Opie { + struct ORecur::Data : public QShared { @@ -79,2 +83,4 @@ ORecur::ORecur( const ORecur& rec) } + + ORecur::~ORecur() { @@ -85,2 +91,4 @@ ORecur::~ORecur() { } + + void ORecur::deref() { @@ -91,2 +99,4 @@ void ORecur::deref() { } + + bool ORecur::operator==( const ORecur& )const { @@ -94,2 +104,4 @@ bool ORecur::operator==( const ORecur& )const { } + + ORecur &ORecur::operator=( const ORecur& re) { @@ -103,2 +115,4 @@ ORecur &ORecur::operator=( const ORecur& re) { } + + bool ORecur::doesRecur()const { @@ -106,2 +120,4 @@ bool ORecur::doesRecur()const { } + + /* @@ -120,2 +136,4 @@ bool ORecur::doesRecur( const QDate& date ) { } + + // FIXME unuglify! @@ -131,2 +149,4 @@ bool ORecur::nextOcurrence( const QDate& from, QDate& next ) { } + + bool ORecur::p_nextOccurrence( const QDate& from, QDate& next ) { @@ -403,2 +423,4 @@ bool ORecur::p_nextOccurrence( const QDate& from, QDate& next ) { } + + ORecur::RepeatType ORecur::type()const{ @@ -406,2 +428,4 @@ ORecur::RepeatType ORecur::type()const{ } + + int ORecur::frequency()const { @@ -409,2 +433,4 @@ int ORecur::frequency()const { } + + int ORecur::position()const { @@ -412,2 +438,4 @@ int ORecur::position()const { } + + char ORecur::days() const{ @@ -415,2 +443,4 @@ char ORecur::days() const{ } + + bool ORecur::hasEndDate()const { @@ -418,2 +448,4 @@ bool ORecur::hasEndDate()const { } + + QDate ORecur::endDate()const { @@ -421,2 +453,4 @@ QDate ORecur::endDate()const { } + + QDate ORecur::start()const{ @@ -424,2 +458,4 @@ QDate ORecur::start()const{ } + + QDateTime ORecur::createdDateTime()const { @@ -427,2 +463,4 @@ QDateTime ORecur::createdDateTime()const { } + + int ORecur::repetition()const { @@ -430,2 +468,4 @@ int ORecur::repetition()const { } + + QString ORecur::service()const { @@ -433,2 +473,4 @@ QString ORecur::service()const { } + + ORecur::ExceptionList& ORecur::exceptions() { @@ -436,2 +478,4 @@ ORecur::ExceptionList& ORecur::exceptions() { } + + void ORecur::setType( const RepeatType& z) { @@ -440,2 +484,4 @@ void ORecur::setType( const RepeatType& z) { } + + void ORecur::setFrequency( int freq ) { @@ -444,2 +490,4 @@ void ORecur::setFrequency( int freq ) { } + + void ORecur::setPosition( int pos ) { @@ -448,2 +496,4 @@ void ORecur::setPosition( int pos ) { } + + void ORecur::setDays( char c ) { @@ -452,2 +502,4 @@ void ORecur::setDays( char c ) { } + + void ORecur::setEndDate( const QDate& dt) { @@ -456,2 +508,4 @@ void ORecur::setEndDate( const QDate& dt) { } + + void ORecur::setCreatedDateTime( const QDateTime& t) { @@ -460,2 +514,4 @@ void ORecur::setCreatedDateTime( const QDateTime& t) { } + + void ORecur::setHasEndDate( bool b) { @@ -464,2 +520,4 @@ void ORecur::setHasEndDate( bool b) { } + + void ORecur::setRepitition( int rep ) { @@ -468,2 +526,4 @@ void ORecur::setRepitition( int rep ) { } + + void ORecur::setService( const QString& app ) { @@ -472,2 +532,4 @@ void ORecur::setService( const QString& app ) { } + + void ORecur::setStart( const QDate& dt ) { @@ -476,2 +538,4 @@ void ORecur::setStart( const QDate& dt ) { } + + void ORecur::checkOrModify() { @@ -494,2 +558,4 @@ void ORecur::checkOrModify() { } + + QString ORecur::toString()const { |