summaryrefslogtreecommitdiff
path: root/libopie/pim/otemplatebase.h
Side-by-side diff
Diffstat (limited to 'libopie/pim/otemplatebase.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/otemplatebase.h11
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
@@ -2,4 +2,6 @@
#define OPIE_TEMPLATE_BASE_H
+#include <qarray.h>
+
#include "opimrecord.h"
@@ -10,4 +12,5 @@ template <class T = OPimRecord>
class OTemplateBase {
public:
+ enum CacheDirection { Forward=0, Reverse };
OTemplateBase() {
};
@@ -16,4 +19,12 @@ public:
virtual T find( int uid )const = 0;
+ /**
+ * 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;
+
};