summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/backend
Side-by-side diff
Diffstat (limited to 'libopie2/opiepim/backend') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiepim/backend/opimaccessbackend.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/libopie2/opiepim/backend/opimaccessbackend.h b/libopie2/opiepim/backend/opimaccessbackend.h
index d9af589..8e744e7 100644
--- a/libopie2/opiepim/backend/opimaccessbackend.h
+++ b/libopie2/opiepim/backend/opimaccessbackend.h
@@ -8,22 +8,29 @@
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;
virtual void clear() = 0;
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