-rw-r--r-- | libopie/pim/otemplatebase.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libopie/pim/otemplatebase.h b/libopie/pim/otemplatebase.h index f71417b..b855919 100644 --- a/libopie/pim/otemplatebase.h +++ b/libopie/pim/otemplatebase.h @@ -3,2 +3,4 @@ +#include <qarray.h> + #include "opimrecord.h" @@ -11,2 +13,3 @@ class OTemplateBase { public: + enum CacheDirection { Forward=0, Reverse }; OTemplateBase() { @@ -17,2 +20,10 @@ public: + /** + * read ahead find + */ + virtual T find( int uid, const QArray<int>& items, + uint current, CacheDirection dir = Forward )const = 0; + virtual void cache( const T& )const = 0; + virtual void setSaneCacheSize( int ) = 0; + }; |