From 8136284c38384b169cd2843ee61480d45b6c1cba Mon Sep 17 00:00:00 2001 From: eilers Date: Fri, 21 Mar 2003 10:33:09 +0000 Subject: Merged speed optimized xml backend for contacts to main. Added QDateTime to querybyexample. For instance, it is now possible to get all Birthdays/Anniversaries between two dates. This should be used to show all birthdays in the datebook.. This change is sourcecode backward compatible but you have to upgrade the binaries for today-addressbook. --- (limited to 'libopie/pim/opimaccesstemplate.h') diff --git a/libopie/pim/opimaccesstemplate.h b/libopie/pim/opimaccesstemplate.h index 259e2c1..6a3a0db 100644 --- a/libopie/pim/opimaccesstemplate.h +++ b/libopie/pim/opimaccesstemplate.h @@ -74,7 +74,7 @@ public: * queryByExample. * @see otodoaccess, ocontactaccess */ - virtual List queryByExample( const T& t, int querySettings ); + virtual List queryByExample( const T& t, int querySettings, const QDateTime& d = QDateTime() ); /** * find the OPimRecord uid @@ -186,8 +186,8 @@ QArray OPimAccessTemplate::records()const { } template typename OPimAccessTemplate::List -OPimAccessTemplate::queryByExample( const T& t, int sortOrder ) { - QArray ints = m_backEnd->queryByExample( t, sortOrder ); +OPimAccessTemplate::queryByExample( const T& t, int settings, const QDateTime& d ) { + QArray ints = m_backEnd->queryByExample( t, settings, d ); List lis(ints, this ); return lis; -- cgit v0.9.0.2