ORecur Class Reference
Class to handle Recurrencies.. More...
#include <orecur.h>
Public Types | |
| typedef QValueList< QDate > | ExceptionList |
| enum | RepeatType { NoRepeat = -1, Daily, Weekly, MonthlyDay, MonthlyDate, Yearly } |
| enum | Days { MON = 0x01, TUE = 0x02, WED = 0x04, THU = 0x08, FRI = 0x10, SAT = 0x20, SUN = 0x40 } |
| enum | Fields { RType = 0, RWeekdays, RPosition, RFreq, RHasEndDate, EndDate, Created, Exceptions } |
Public Member Functions | |
| ORecur () | |
| ORecur (const QMap< int, QString > &map) | |
| ORecur (const ORecur &) | |
| ~ORecur () | |
| ORecur & | operator= (const ORecur &) |
| bool | operator== (const ORecur &) const |
| bool | doesRecur () const |
| bool | doesRecur (const QDate &) |
| RepeatType | type () const |
| int | frequency () const |
| int | position () const |
| char | days () const |
| bool | hasEndDate () const |
| QDate | start () const |
| QDate | endDate () const |
| QDateTime | createdDateTime () const |
| bool | repeatOnWeekDay (int day) const |
| starting on monday=0, sunday=6 for convience | |
| bool | nextOcurrence (const QDate &FromWhereToStart, QDate &recurDate) |
| FromWhereToStart is not included!!! | |
| QString | service () const |
| The module this ORecur belongs to. | |
| ExceptionList & | exceptions () |
| int | repetition () const |
| the current repetition | |
| void | setType (const RepeatType &) |
| void | setFrequency (int freq) |
| void | setPosition (int pos) |
| void | setDays (char c) |
| void | setEndDate (const QDate &dt) |
| void | setStart (const QDate &dt) |
| void | setCreatedDateTime (const QDateTime &) |
| void | setHasEndDate (bool b) |
| void | setRepitition (int) |
| void | setService (const QString &ser) |
| QMap< int, QString > | toMap () const |
| void | fromMap (const QMap< int, QString > &map) |
| QString | toString () const |
Detailed Description
Class to handle Recurrencies..
Definition at line 19 of file orecur.h.
Member Typedef Documentation
|
|
Definition at line 21 of file orecur.h. Referenced by exceptions(), and toMap(). |
Member Enumeration Documentation
|
|
Definition at line 22 of file orecur.h. Referenced by type(). |
|
|
|
|
|
|
Constructor & Destructor Documentation
|
|
Definition at line 34 of file orecur.cpp. Referenced by ORecur(). |
|
|
Definition at line 38 of file orecur.cpp. |
|
|
Definition at line 45 of file orecur.cpp. |
|
|
Definition at line 50 of file orecur.cpp. |
Member Function Documentation
|
|
Definition at line 65 of file orecur.cpp. References data. |
|
|
Definition at line 62 of file orecur.cpp. |
|
|
Definition at line 74 of file orecur.cpp. Referenced by OTodoAccessXML::load(). |
|
|
Definition at line 81 of file orecur.cpp. References QDate::addDays(), and nextOcurrence(). |
|
|
Definition at line 374 of file orecur.cpp. References RepeatType. Referenced by fromMap(). |
|
|
Definition at line 377 of file orecur.cpp. |
|
|
Definition at line 380 of file orecur.cpp. |
|
|
Definition at line 383 of file orecur.cpp. Referenced by fromMap(). |
|
|
Definition at line 386 of file orecur.cpp. Referenced by repeat(). |
|
|
Definition at line 392 of file orecur.cpp. |
|
|
Definition at line 389 of file orecur.cpp. Referenced by repeat(). |
|
|
Definition at line 395 of file orecur.cpp. |
|
|
starting on monday=0, sunday=6 for convience
|
|
||||||||||||
|
FromWhereToStart is not included!!!
Definition at line 94 of file orecur.cpp. References QDate::addDays(). Referenced by doesRecur(), and repeat(). |
|
|
The module this ORecur belongs to.
Definition at line 401 of file orecur.cpp. |
|
|
Definition at line 404 of file orecur.cpp. References ExceptionList. |
|
|
the current repetition
Definition at line 398 of file orecur.cpp. |
|
|
Definition at line 407 of file orecur.cpp. |
|
|
Definition at line 411 of file orecur.cpp. |
|
|
Definition at line 415 of file orecur.cpp. |
|
|
Definition at line 419 of file orecur.cpp. |
|
|
Definition at line 423 of file orecur.cpp. Referenced by OTodoAccessXML::load(), and repeat(). |
|
|
Definition at line 443 of file orecur.cpp. Referenced by OTodoAccessXML::load(). |
|
|
Definition at line 427 of file orecur.cpp. |
|
|
Definition at line 431 of file orecur.cpp. Referenced by repeat(). |
|
|
Definition at line 435 of file orecur.cpp. |
|
|
Definition at line 439 of file orecur.cpp. |
|
|
Definition at line 536 of file orecur.cpp. References QValueList::begin(), Created, QDate::day(), QValueList::end(), EndDate, ExceptionList, Exceptions, QMap::insert(), QDate::month(), RFreq, RHasEndDate, RPosition, RType, RWeekdays, QString::sprintf(), and QDate::year(). Referenced by OEvent::toMap(). |
|
|
Definition at line 568 of file orecur.cpp. References Created, QDateTime::date(), days(), EndDate, Exceptions, OTimeZone::fromUTCDateTime(), RFreq, RHasEndDate, RPosition, RType, RWeekdays, QStringList::split(), type(), and OTimeZone::utc(). Referenced by ORecur(). |
|
|
Definition at line 465 of file orecur.cpp. References Created, EndDate, Exceptions, RFreq, RHasEndDate, RPosition, RType, and RWeekdays. Referenced by save(). |
The documentation for this class was generated from the following files:
