From 549472ef07703ef27dc5f58a37e8f16c714fb2a1 Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 19 Oct 2002 00:08:35 +0000 Subject: Add void setReadAhead(uint) to the templates OTodoAccessSQL use the read ahead value --- (limited to 'libopie/pim/opimaccesstemplate.h') diff --git a/libopie/pim/opimaccesstemplate.h b/libopie/pim/opimaccesstemplate.h index 50cb1e4..c5523a8 100644 --- a/libopie/pim/opimaccesstemplate.h +++ b/libopie/pim/opimaccesstemplate.h @@ -65,7 +65,7 @@ public: virtual List allRecords()const; /** - * queryByExample. + * queryByExample. * @see otodoaccess, ocontactaccess */ virtual List queryByExample( const T& t, int querySettings ); @@ -116,6 +116,7 @@ public: */ virtual bool replace( const T& t) ; + void setReadAhead( uint count ); /** * @internal */ @@ -251,4 +252,8 @@ template void OPimAccessTemplate::setSaneCacheSize( int size ) { m_cache.setSize( size ); } +template +void OPimAccessTemplate::setReadAhead( uint count ) { + m_backEnd->setReadAhead( count ); +} #endif -- cgit v0.9.0.2