summaryrefslogtreecommitdiffabout
path: root/kabc/plugins/opie/resourceopie.h
Side-by-side diff
Diffstat (limited to 'kabc/plugins/opie/resourceopie.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/plugins/opie/resourceopie.h40
1 files changed, 22 insertions, 18 deletions
diff --git a/kabc/plugins/opie/resourceopie.h b/kabc/plugins/opie/resourceopie.h
index 9db9485..ca30fee 100644
--- a/kabc/plugins/opie/resourceopie.h
+++ b/kabc/plugins/opie/resourceopie.h
@@ -39,4 +39,3 @@ $Id$
-//class QTimer;
-//class FormatPlugin;
+class OContactAccess;
@@ -44,3 +43,2 @@ namespace KABC {
-//US class FormatPlugin;
class ResourceConfigWidget;
@@ -61,3 +59,3 @@ public:
*/
- ResourceOpie( const KConfig *cfg );
+ ResourceOpie( const KConfig *cfg, bool syncable );
@@ -66,3 +64,3 @@ public:
*/
- ResourceOpie( const QString &fileName );
+ ResourceOpie( const QString &fileName, bool syncable );
@@ -88,3 +86,3 @@ public:
virtual void doClose();
-
+
/**
@@ -108,11 +106,2 @@ public:
- /**
- * Set name of file to be used for saving.
- */
- void setFileName( const QString & );
-
- /**
- * Return name of file used for loading and saving the address book.
- */
- QString fileName() const;
@@ -125,2 +114,7 @@ public:
/**
+ * Set name of file to be used for saving.
+ */
+ virtual void setFileName( const QString & );
+
+ /**
* This method is called by an error handler if the application
@@ -130,2 +124,13 @@ public:
+ /**
+ * This method returns the number of elements that are currently in the resource.
+ */
+ virtual int count() const;
+
+ /**
+ * This method removes all elements from the resource!! (Not from the addressbook)
+ */
+ virtual bool clear();
+
+
protected slots:
@@ -140,8 +145,7 @@ protected:
private:
+ OContactAccess* mAccess;
OpieConverter* mConverter;
-
- QString mFileName;
QString mLockUniqueName;
-
+
KDirWatch mDirWatch;