summaryrefslogtreecommitdiff
path: root/libopie/pim/opimaccessbackend.h
authorzecke <zecke>2002-09-22 16:40:04 (UTC)
committer zecke <zecke>2002-09-22 16:40:04 (UTC)
commit2c398e382bf015eb4cf7302e5d79ed63f476be3a (patch) (side-by-side diff)
treeeb446c641471a39d08159e058038cc1eb0d9d5b3 /libopie/pim/opimaccessbackend.h
parentc15b90cb32a27ece63620be60f96959f2ee6f492 (diff)
downloadopie-2c398e382bf015eb4cf7302e5d79ed63f476be3a.zip
opie-2c398e382bf015eb4cf7302e5d79ed63f476be3a.tar.gz
opie-2c398e382bf015eb4cf7302e5d79ed63f476be3a.tar.bz2
Ok now it compiles again... heureka
I had to create templatebase so orecordlist and opimaccesstemplate do not have circular dependency otherwise just compile fixes to my templaes and i did not make them inline
Diffstat (limited to 'libopie/pim/opimaccessbackend.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/opimaccessbackend.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/libopie/pim/opimaccessbackend.h b/libopie/pim/opimaccessbackend.h
index d9af589..8e744e7 100644
--- a/libopie/pim/opimaccessbackend.h
+++ b/libopie/pim/opimaccessbackend.h
@@ -9,12 +9,10 @@ template <class T = OPimRecord>
class OPimAccessBackend {
public:
- OPimAccessBackend() {
- }
- ~OPimAccessBackend() {
- }
+ OPimAccessBackend();
+ virtual ~OPimAccessBackend();
virtual void load() = 0;
virtual void reload() = 0;
virtual void save() = 0;
- virtual QArray<int> allRecords() = 0;
+ virtual QArray<int> allRecords()const = 0;
virtual QArray<int> queryByExample( const T& t, int sort ) = 0;
virtual T find(int uid ) = 0;
@@ -22,8 +20,17 @@ public:
virtual bool add( const T& t ) = 0;
virtual bool remove( int uid ) = 0;
- virtual void replace( const T& t ) = 0;
+ virtual bool replace( const T& t ) = 0;
};
+template <class T>
+OPimAccessBackend<T>::OPimAccessBackend() {
+
+}
+template <class T>
+OPimAccessBackend<T>::~OPimAccessBackend() {
+
+}
+
#endif