From 28b70b2b7f8fa03ba0991fb73dccf7b46e5c3d1f Mon Sep 17 00:00:00 2001 From: eilers Date: Fri, 01 Nov 2002 15:10:42 +0000 Subject: Added regExp-search in database for all fields in a contact. --- (limited to 'libopie2/opiepim/core/ocontactaccess.cpp') diff --git a/libopie2/opiepim/core/ocontactaccess.cpp b/libopie2/opiepim/core/ocontactaccess.cpp index 2ca0283..f868b53 100644 --- a/libopie2/opiepim/core/ocontactaccess.cpp +++ b/libopie2/opiepim/core/ocontactaccess.cpp @@ -21,6 +21,9 @@ * ===================================================================== * History: * $Log$ + * Revision 1.6 2002/11/01 15:10:42 eilers + * Added regExp-search in database for all fields in a contact. + * * Revision 1.5 2002/10/16 10:52:40 eilers * Added some docu to the interface and now using the cache infrastucture by zecke.. :) * @@ -120,6 +123,11 @@ bool OContactAccess::save () return true; } +ORecordList OContactAccess::matchRegexp( const QRegExp &r ) const{ + QArray matchingContacts = m_backEnd -> matchRegexp( r ); + return ( ORecordList(matchingContacts, this) ); +} + const uint OContactAccess::querySettings() { return ( m_backEnd->querySettings() ); -- cgit v0.9.0.2