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/opimaccessbackend.h') diff --git a/libopie/pim/opimaccessbackend.h b/libopie/pim/opimaccessbackend.h index 27d3cb8..0bd2723 100644 --- a/libopie/pim/opimaccessbackend.h +++ b/libopie/pim/opimaccessbackend.h @@ -83,6 +83,10 @@ public: */ void setFrontend( Frontend* front ); + /** + * set the read ahead count + */ + void setReadAhead( uint count ); protected: void cache( const T& t )const; @@ -91,8 +95,11 @@ protected: */ void setSaneCacheSize( int ); + uint readAhead()const; + private: Frontend* m_front; + uint m_read; }; @@ -123,5 +130,12 @@ T OPimAccessBackend::find( int uid, const QArray&, uint, Frontend::CacheDirection )const { return find( uid ); } - +template +void OPimAccessBackend::setReadAhead( uint count ) { + m_read = count; +} +template +uint OPimAccessBackend::readAhead()const { + return m_read; +} #endif -- cgit v0.9.0.2