#include </home/clem/local/src/opie/libopie2/opiepim/private/opimsortvector.h>
Inheritance diagram for Opie::Internal::OPimSortVector< T >:

Public Member Functions | |
| OPimSortVector (uint size, bool asc, int sort) | |
| int | compareItems (QCollection::Item d1, QCollection::Item d2) |
| bool | insert (uint, const T &t) |
| UID | uidAt (uint i) const |
Protected Member Functions | |
| int | testString (const QString &, const QString &) const |
| int | testDate (const QDate &, const QDate &) const |
| int | testTime (const QTime &, const QTime &) const |
| int | testDateTime (const QDateTime &left, const QDateTime &right) const |
| bool | sortAscending () const |
| int | sortOrder () const |
Private Types | |
| typedef OPimSortVectorContainer< T > | VectorItem |
Private Member Functions | |
| virtual int | compareItems (const T &item1, const T &item2)=0 |
Private Attributes | |
| bool | m_ascending: 1 |
| int | m_sort |
|
|||||
|
Definition at line 46 of file opimsortvector.h. |
|
||||||||||||||||||||
|
Definition at line 70 of file opimsortvector.h. |
|
||||||||||||||||
|
Implemented in Opie::Internal::OPimContactSortVector, Opie::Internal::OPimEventSortVector, and Opie::Internal::OPimTodoSortVector. |
|
||||||||||||||||
|
Returns: 0 if item1 == item2 non-zero if item1 != item2 This function returns int rather than bool so that reimplementations can return one of three values and use it to sort by: 0 if item1 == item2 > 0 (positive integer) if item1 > item2 < 0 (negative integer) if item1 < item2 Definition at line 93 of file opimsortvector.h. |
|
||||||||||||||||
|
Definition at line 109 of file opimsortvector.h. References Opie::Internal::OPimSortVectorContainer< T >::item. Referenced by Opie::OPimTodoAccessXML::sorted(), Opie::OPimTodoAccessBackend::sorted(), Opie::ODateBookAccessBackend::sorted(), and Opie::OPimContactAccessBackend::sorted(). |
|
|||||||||
|
Definition at line 99 of file opimsortvector.h. References Opie::Internal::OPimSortVector< T >::m_ascending. |
|
|||||||||
|
Definition at line 104 of file opimsortvector.h. References Opie::Internal::OPimSortVector< T >::m_sort. |
|
||||||||||||||||
|
Definition at line 128 of file opimsortvector.h. References QDate::isValid(). |
|
||||||||||||||||
|
Definition at line 155 of file opimsortvector.h. References QDateTime::isValid(). |
|
||||||||||||||||
|
Definition at line 121 of file opimsortvector.h. References QString::compare(). |
|
||||||||||||||||
|
Definition at line 141 of file opimsortvector.h. References QTime::isValid(). |
|
||||||||||
|
Definition at line 116 of file opimsortvector.h. References at(). Referenced by Opie::OPimTodoAccessXML::sorted(), Opie::OPimTodoAccessBackend::sorted(), Opie::ODateBookAccessBackend::sorted(), and Opie::OPimContactAccessBackend::sorted(). |
|
|||||
|
Definition at line 64 of file opimsortvector.h. Referenced by Opie::Internal::OPimSortVector< T >::sortAscending(). |
|
|||||
|
Definition at line 65 of file opimsortvector.h. Referenced by Opie::Internal::OPimSortVector< T >::sortOrder(). |
1.4.2