#include </home/clem/local/src/opie/libopie2/opiepim/core/opimtemplatebase.h>
Inheritance diagram for Opie::OPimBase:

Public Types | |
| enum | QuerySettings { WildCards = 0x0001, IgnoreCase = 0x0002, RegExp = 0x0004, ExactMatch = 0x0008, MatchOne = 0x0010, DateDiff = 0x0020, DateYear = 0x0040, DateMonth = 0x0080, DateDay = 0x0100, LastItem = 0xffff } |
| enum | SortOrderBase { SortSummary = 0, SortByCategory = 1, SortByDate = 2, SortCustom = 10, LastSortOrderBase = 0xffff } |
| enum | SortFilterBase { FilterOff = 0, FilterCategory = 1, FilterCustom = 1024, LastSortFilterBase = 0xffffffff } |
Public Member Functions | |
| OPimBase () | |
| virtual | ~OPimBase () |
| virtual int | rtti () const =0 |
| virtual OPimRecord * | record () const =0 |
| virtual OPimRecord * | record (int uid) const =0 |
| virtual bool | add (const OPimRecord &)=0 |
| virtual bool | add (const OPimRecord *)=0 |
| virtual bool | remove (int uid)=0 |
| virtual bool | remove (const OPimRecord &)=0 |
| virtual void | clear ()=0 |
| virtual bool | load ()=0 |
| virtual bool | save ()=0 |
| virtual QArray< UID > | records () const =0 |
| virtual UIDArray | matchRegexpSimple (const QRegExp &r) const =0 |
| virtual UIDArray | queryByExampleSimple (const OPimRecord *, int settings, const QDateTime &d=QDateTime()) const =0 |
| virtual UIDArray | sortedSimple (const UIDArray &uid, bool ascending, int sortOrder, int sortFilter, int cat) const =0 |
| virtual UIDArray | sortedSimple (const UIDArray &uid, bool ascending, int sortOrder, int sortFilter, const QArray< UID > &cats) const =0 |
| virtual UIDArray | sortedSimple (bool ascending, int sortOrder, int sortFilter, int cat) const =0 |
| virtual UIDArray | sortedSimple (bool ascending, int sortOrder, int sortFilter, const QArray< UID > &cats) const =0 |
| virtual OPimOccurrence::List | occurrences (const QDate &start, const QDate &end) const =0 |
| virtual OPimOccurrence::List | occurrences (const QDateTime &dt) const =0 |
Protected Member Functions | |
| OPimOccurrence::List | convertOccurrenceFromBackend (const OPimBackendOccurrence::List &) const |
Private Attributes | |
| OPimBasePrivate * | d |
Definition at line 52 of file opimtemplatebase.h.
|
|
Constants for query. Use this constants to set the query parameters. Note: query_IgnoreCase just make sense with one of the other attributes !
Definition at line 90 of file opimtemplatebase.h. |
|
|
Sort a list of Items with the help of the sorted() function. The Item you provide in SortOrder will be used for sorting.
Definition at line 136 of file opimtemplatebase.h. |
|
|
Common Attributes for the Sort Order
Definition at line 116 of file opimtemplatebase.h. |
|
|
Definition at line 46 of file opimtemplatebase.cpp. |
|
|
Definition at line 47 of file opimtemplatebase.cpp. |
|
|
Implemented in Opie::OPimAccessTemplate< T >, Opie::OPimAccessTemplate< OPimEvent >, Opie::OPimAccessTemplate< OPimContact >, and Opie::OPimAccessTemplate< OPimTodo >. |
|
|
Implemented in Opie::OPimAccessTemplate< T >, Opie::OPimAccessTemplate< OPimEvent >, Opie::OPimAccessTemplate< OPimContact >, and Opie::OPimAccessTemplate< OPimTodo >. Referenced by Opie::OPimResolver::add(). |
|
|
Implemented in Opie::OPimAccessTemplate< T >, Opie::OPimAccessTemplate< OPimEvent >, Opie::OPimAccessTemplate< OPimContact >, and Opie::OPimAccessTemplate< OPimTodo >. |
|
|
For internal use only. Convert internal Occurrence representation to the external Definition at line 53 of file opimtemplatebase.cpp. References QDate::addDays(), QDateTime::addDays(), QValueList< T >::append(), Opie::OPimOccurrence::Data::backend, QValueList< T >::begin(), data, QDateTime::date(), QDateTime::daysTo(), end, QValueList< T >::end(), Opie::OPimBackendOccurrence::endDateTime(), Opie::OPimBackendOccurrence::isAllDay(), Opie::OPimBackendOccurrence::location(), Opie::OPimOccurrence::Data::location, Opie::OPimBackendOccurrence::note(), Opie::OPimOccurrence::Data::note, Opie::setPeriod(), Start, start, Opie::OPimBackendOccurrence::startDateTime(), Opie::OPimBackendOccurrence::summary(), Opie::OPimOccurrence::Data::summary, QDateTime::time(), Opie::OPimBackendOccurrence::uid(), and Opie::OPimOccurrence::Data::uid. Referenced by Opie::OPimAccessTemplate< T >::occurrences(). |
|
|
Implemented in Opie::OPimAccessTemplate< T >, Opie::OPimAccessTemplate< OPimEvent >, Opie::OPimAccessTemplate< OPimContact >, and Opie::OPimAccessTemplate< OPimTodo >. Referenced by Opie::OPimResolver::add(). |
|
|
Implemented in Opie::OPimAccessTemplate< T >, Opie::OPimAccessTemplate< OPimEvent >, Opie::OPimAccessTemplate< OPimContact >, and Opie::OPimAccessTemplate< OPimTodo >. |
|
|
Implemented in Opie::OPimAccessTemplate< T >, Opie::OPimAccessTemplate< OPimEvent >, Opie::OPimAccessTemplate< OPimContact >, and Opie::OPimAccessTemplate< OPimTodo >. |
|
||||||||||||
|
Implemented in Opie::OPimAccessTemplate< T >, Opie::OPimAccessTemplate< OPimEvent >, Opie::OPimAccessTemplate< OPimContact >, and Opie::OPimAccessTemplate< OPimTodo >. |
|
||||||||||||||||
|
Implemented in Opie::OPimAccessTemplate< T >, Opie::OPimAccessTemplate< OPimEvent >, Opie::OPimAccessTemplate< OPimContact >, and Opie::OPimAccessTemplate< OPimTodo >. |
|
|
Implemented in Opie::OTemplateBase< T >, Opie::OTemplateBase< OPimEvent >, Opie::OTemplateBase< OPimContact >, and Opie::OTemplateBase< OPimTodo >. |
|
|
|
|
Implemented in Opie::OPimAccessTemplate< T >, Opie::OPimAccessTemplate< OPimEvent >, Opie::OPimAccessTemplate< OPimContact >, and Opie::OPimAccessTemplate< OPimTodo >. |
|
|
|
|
|
return the rtti Implemented in Opie::OPimContactAccess, Opie::ODateBookAccess, and Opie::OPimTodoAccess. Referenced by Opie::OPimAccessTemplate< T >::add(). |
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
Implemented in Opie::OPimAccessTemplate< T >, Opie::OPimAccessTemplate< OPimEvent >, Opie::OPimAccessTemplate< OPimContact >, and Opie::OPimAccessTemplate< OPimTodo >. |
|
||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
Implemented in Opie::OPimAccessTemplate< T >, Opie::OPimAccessTemplate< OPimEvent >, Opie::OPimAccessTemplate< OPimContact >, and Opie::OPimAccessTemplate< OPimTodo >. |
|
1.4.2