#include </home/clem/local/src/opie/libopie2/opiepim/core/opimoccurrence.h>
Collaboration diagram for Opie::OPimOccurrence:

Public Types | |
| typedef QValueList< OPimOccurrence > | List |
| enum | Position { MidWay, Start, End, StartEnd } |
Public Member Functions | |
| OPimOccurrence () | |
| OPimOccurrence (const OPimOccurrence &) | |
| Copy constructor. | |
| ~OPimOccurrence () | |
| void | setPeriod (const QDate &from) |
| Set the Occurrence to be All Day on a specified QDate. | |
| void | setPeriod (const QDateTime &from, const QDateTime &to) |
| Set the period of this Occurrence with a QTime associated (overloaded). | |
| void | setPeriod (const QDate &from, const QTime &start, const QTime &end) |
| Set the period of this Occurrence with a QTime associated. | |
| bool | isAllDay () const |
| Is a QTime associated to the OPimOccurrence. | |
| QDate | date () const |
| Return the QDate where this OPimOccurrence takes place. | |
| QTime | startTime () const |
| Return the start time of the OPimOccurrence. | |
| QTime | endTime () const |
| QDateTime | startDateTime () const |
| QDateTime | endDateTime () const |
| QString | summary () const |
| QString | location () const |
| QString | note () const |
| int | length () const |
| Position | position () const |
| void | setPosition (enum Position &) |
| Opie::Core::OSharedPointer< OPimRecord > | record () const |
| OPimEvent | toEvent () const |
| OPimTodo | toTodo () const |
| OPimContact | toContact () const |
| bool | operator< (const OPimOccurrence &) const |
| bool | operator<= (const OPimOccurrence &) const |
| bool | operator== (const OPimOccurrence &) const |
| bool | operator!= (const OPimOccurrence &) const |
| bool | operator> (const OPimOccurrence &) const |
| bool | operator>= (const OPimOccurrence &) const |
| OPimOccurrence & | operator= (const OPimOccurrence &) |
| Copy Operator. | |
Private Member Functions | |
| void | deref () |
| void | changeOrModify () |
| OPimOccurrence (OPimOccurrence::Data *, enum Position) | |
| template<class T> | |
| T | internalToRecord () const |
Private Attributes | |
| QDate | m_occurrence |
| QTime | m_start |
| QTime | m_end |
| bool | m_isAllDay: 1 |
| enum Position | m_pos |
| Data * | data |
| Private * | d |
Friends | |
| class | OPimBase |
Classes | |
| struct | Data |
An OPimOccurrence represents the occurrence of one OPimRecord for a period of Time for one day. An occurrence can spawn more then one day and then is splitted into multiple OPimOccurrence. By attributes you can find if a OPimOccurrence is the beginning and end, begin, end or is midway of a multiday occurrence.
Definition at line 55 of file opimoccurrence.h.
|
|
Definition at line 58 of file opimoccurrence.h. |
|
|
The position of the OPimOccurrence in a possible MultiDay Occurrence. Definition at line 63 of file opimoccurrence.h. |
|
|
Definition at line 67 of file opimoccurrence.cpp. References data. |
|
|
Copy constructor.
Definition at line 49 of file opimoccurrence.cpp. References data, m_end, m_isAllDay, m_occurrence, m_pos, m_start, and QShared::ref(). |
|
|
Definition at line 74 of file opimoccurrence.cpp. References deref(). |
|
||||||||||||
|
Definition at line 41 of file opimoccurrence.cpp. |
|
|
|
|
|
Return the QDate where this OPimOccurrence takes place.
Definition at line 178 of file opimoccurrence.cpp. References m_occurrence. |
|
|
For internal use only.
Definition at line 106 of file opimoccurrence.cpp. References data, and QShared::deref(). Referenced by operator=(), and ~OPimOccurrence(). |
|
|
Definition at line 201 of file opimoccurrence.cpp. References m_end, and m_occurrence. |
|
|
Definition at line 193 of file opimoccurrence.cpp. References m_end. Referenced by PIMListView::makeString(). |
|
|||||||||
|
Definition at line 246 of file opimoccurrence.cpp. References Opie::OPimOccurrence::Data::backend, data, Opie::OPimBase::record(), Opie::OPimOccurrence::Data::record, and Opie::OPimOccurrence::Data::uid. |
|
|
Is a QTime associated to the OPimOccurrence.
Definition at line 169 of file opimoccurrence.cpp. References m_isAllDay. |
|
|
-1 if no time is associated otherwise the length of the occurrence in hours Definition at line 223 of file opimoccurrence.cpp. References QTime::hour(), m_end, m_isAllDay, m_start, and QTime::minute(). |
|
|
Definition at line 210 of file opimoccurrence.cpp. References data, and Opie::OPimOccurrence::Data::location. |
|
|
Definition at line 214 of file opimoccurrence.cpp. References data, and Opie::OPimOccurrence::Data::note. |
|
|
Definition at line 307 of file opimoccurrence.cpp. |
|
|
Definition at line 273 of file opimoccurrence.cpp. References m_occurrence, and m_start. |
|
|
Definition at line 282 of file opimoccurrence.cpp. References m_occurrence. |
|
|
Copy Operator.
Definition at line 81 of file opimoccurrence.cpp. References data, deref(), m_end, m_isAllDay, m_occurrence, m_pos, m_start, and QShared::ref(). |
|
|
Definition at line 286 of file opimoccurrence.cpp. References data, Opie::OPimOccurrence::Data::location, m_end, m_isAllDay, m_occurrence, m_start, Opie::OPimOccurrence::Data::note, Opie::OPimOccurrence::Data::summary, and Opie::OPimOccurrence::Data::uid. |
|
|
Definition at line 311 of file opimoccurrence.cpp. |
|
|
Definition at line 315 of file opimoccurrence.cpp. |
|
|
Definition at line 231 of file opimoccurrence.cpp. References m_pos. |
|
|
Definition at line 240 of file opimoccurrence.cpp. References Opie::OPimOccurrence::Data::backend, data, Opie::OPimBase::record(), Opie::OPimOccurrence::Data::record, and Opie::OPimOccurrence::Data::uid. |
|
||||||||||||||||
|
Set the period of this Occurrence with a QTime associated.
Definition at line 155 of file opimoccurrence.cpp. References m_end, m_isAllDay, m_occurrence, and m_start. |
|
||||||||||||
|
Set the period of this Occurrence with a QTime associated (overloaded). Set the period of time for this Occurrence. Each Ocurrence is limited to one day. Using this Method will make
Definition at line 141 of file opimoccurrence.cpp. References QDateTime::date(), m_end, m_isAllDay, m_occurrence, m_start, and QDateTime::time(). |
|
|
Set the Occurrence to be All Day on a specified QDate. If no QTime is associated to a OPimOccurrence use this Method to set the Period of this Occurrence. When using this Method later calls to
Definition at line 124 of file opimoccurrence.cpp. References m_end, m_isAllDay, m_occurrence, and m_start. Referenced by Opie::setPeriod(). |
|
|
Definition at line 235 of file opimoccurrence.cpp. References m_pos. |
|
|
Definition at line 197 of file opimoccurrence.cpp. References m_occurrence, and m_start. |
|
|
Return the start time of the OPimOccurrence.
Definition at line 189 of file opimoccurrence.cpp. References m_start. Referenced by PIMListView::makeString(). |
|
|
Definition at line 206 of file opimoccurrence.cpp. References data, and Opie::OPimOccurrence::Data::summary. Referenced by PIMListView::makeString(). |
|
|
Definition at line 269 of file opimoccurrence.cpp. |
|
|
Definition at line 261 of file opimoccurrence.cpp. Referenced by PIMListView::makeString(). |
|
|
Definition at line 265 of file opimoccurrence.cpp. |
|
|
Definition at line 56 of file opimoccurrence.h. |
|
|
Definition at line 134 of file opimoccurrence.h. |
|
|
Definition at line 131 of file opimoccurrence.h. Referenced by deref(), internalToRecord(), location(), note(), operator=(), operator==(), OPimOccurrence(), record(), and summary(). |
|
|
Definition at line 123 of file opimoccurrence.h. Referenced by endDateTime(), endTime(), length(), operator=(), operator==(), OPimOccurrence(), and setPeriod(). |
|
|
Definition at line 124 of file opimoccurrence.h. Referenced by isAllDay(), length(), operator=(), operator==(), OPimOccurrence(), and setPeriod(). |
|
|
Definition at line 122 of file opimoccurrence.h. Referenced by date(), endDateTime(), operator<(), operator<=(), operator=(), operator==(), OPimOccurrence(), setPeriod(), and startDateTime(). |
|
|
Definition at line 125 of file opimoccurrence.h. Referenced by operator=(), OPimOccurrence(), position(), and setPosition(). |
|
|
Definition at line 123 of file opimoccurrence.h. Referenced by length(), operator<(), operator=(), operator==(), OPimOccurrence(), setPeriod(), startDateTime(), and startTime(). |
1.4.2