Diffstat (limited to 'libopie/pim/ocontactaccess.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/pim/ocontactaccess.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libopie/pim/ocontactaccess.cpp b/libopie/pim/ocontactaccess.cpp index f868b53..9c9338e 100644 --- a/libopie/pim/ocontactaccess.cpp +++ b/libopie/pim/ocontactaccess.cpp | |||
@@ -18,12 +18,15 @@ | |||
18 | * | 18 | * |
19 | * ===================================================================== | 19 | * ===================================================================== |
20 | * Version: $Id$ | 20 | * Version: $Id$ |
21 | * ===================================================================== | 21 | * ===================================================================== |
22 | * History: | 22 | * History: |
23 | * $Log$ | 23 | * $Log$ |
24 | * Revision 1.7 2002/11/13 14:14:51 eilers | ||
25 | * Added sorted for Contacts.. | ||
26 | * | ||
24 | * Revision 1.6 2002/11/01 15:10:42 eilers | 27 | * Revision 1.6 2002/11/01 15:10:42 eilers |
25 | * Added regExp-search in database for all fields in a contact. | 28 | * Added regExp-search in database for all fields in a contact. |
26 | * | 29 | * |
27 | * Revision 1.5 2002/10/16 10:52:40 eilers | 30 | * Revision 1.5 2002/10/16 10:52:40 eilers |
28 | * Added some docu to the interface and now using the cache infrastucture by zecke.. :) | 31 | * Added some docu to the interface and now using the cache infrastucture by zecke.. :) |
29 | * | 32 | * |
@@ -134,12 +137,17 @@ const uint OContactAccess::querySettings() | |||
134 | } | 137 | } |
135 | 138 | ||
136 | bool OContactAccess::hasQuerySettings ( int querySettings ) const | 139 | bool OContactAccess::hasQuerySettings ( int querySettings ) const |
137 | { | 140 | { |
138 | return ( m_backEnd->hasQuerySettings ( querySettings ) ); | 141 | return ( m_backEnd->hasQuerySettings ( querySettings ) ); |
139 | } | 142 | } |
143 | ORecordList<OContact> OContactAccess::sorted( bool ascending, int sortOrder, int sortFilter, int cat ) const | ||
144 | { | ||
145 | QArray<int> matchingContacts = m_backEnd -> sorted( ascending, sortOrder, sortFilter, cat ); | ||
146 | return ( ORecordList<OContact>(matchingContacts, this) ); | ||
147 | } | ||
140 | 148 | ||
141 | 149 | ||
142 | bool OContactAccess::wasChangedExternally()const | 150 | bool OContactAccess::wasChangedExternally()const |
143 | { | 151 | { |
144 | return ( m_backEnd->wasChangedExternally() ); | 152 | return ( m_backEnd->wasChangedExternally() ); |
145 | } | 153 | } |