From 0cb4111d34d9fe96731f48983e1ff2e67262db02 Mon Sep 17 00:00:00 2001 From: tille Date: Thu, 08 May 2003 13:55:09 +0000 Subject: search stuff and match, toRichText & toShortText in oevent --- (limited to 'libopie2/opiepim/core/opimaccesstemplate.h') diff --git a/libopie2/opiepim/core/opimaccesstemplate.h b/libopie2/opiepim/core/opimaccesstemplate.h index 6a3a0db..8ff205c 100644 --- a/libopie2/opiepim/core/opimaccesstemplate.h +++ b/libopie2/opiepim/core/opimaccesstemplate.h @@ -69,6 +69,12 @@ public: * you can iterate over them */ virtual List allRecords()const; + + /** + * return a List of records + * that match the regex + */ + virtual List matchRegexp( const QRegExp &r ) const; /** * queryByExample. @@ -181,6 +187,12 @@ typename OPimAccessTemplate::List OPimAccessTemplate::allRecords()const { return lis; } template +typename OPimAccessTemplate::List OPimAccessTemplate::matchRegexp( const QRegExp &r )const { + QArray ints = m_backEnd->matchRegexp( r ); + List lis(ints, this ); + return lis; +} +template QArray OPimAccessTemplate::records()const { return m_backEnd->allRecords(); } -- cgit v0.9.0.2