summaryrefslogtreecommitdiffabout
path: root/kabc/plugins/sharpdtm/resourcesharpdtm.h
Unidiff
Diffstat (limited to 'kabc/plugins/sharpdtm/resourcesharpdtm.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/plugins/sharpdtm/resourcesharpdtm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kabc/plugins/sharpdtm/resourcesharpdtm.h b/kabc/plugins/sharpdtm/resourcesharpdtm.h
index f495e9d..60d38a1 100644
--- a/kabc/plugins/sharpdtm/resourcesharpdtm.h
+++ b/kabc/plugins/sharpdtm/resourcesharpdtm.h
@@ -16,48 +16,50 @@
16 along with this library; see the file COPYING.LIB. If not, write to 16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19*/ 19*/
20 20
21/* 21/*
22Enhanced Version of the file for platform independent KDE tools. 22Enhanced Version of the file for platform independent KDE tools.
23Copyright (c) 2004 Ulf Schenk 23Copyright (c) 2004 Ulf Schenk
24 24
25$Id$ 25$Id$
26*/ 26*/
27 27
28 28
29#ifndef KABC_RESOURCESHARPDTM_H 29#ifndef KABC_RESOURCESHARPDTM_H
30#define KABC_RESOURCESHARPDTM_H 30#define KABC_RESOURCESHARPDTM_H
31 31
32#include <kconfig.h> 32#include <kconfig.h>
33#include <kdirwatch.h> 33#include <kdirwatch.h>
34 34
35#include <sys/types.h> 35#include <sys/types.h>
36 36
37#include "resource.h" 37#include "resource.h"
38 38
39 39
40class SlZDataBase;
41
40namespace KABC { 42namespace KABC {
41 43
42class ResourceConfigWidget; 44class ResourceConfigWidget;
43class SharpDTMConverter; 45class SharpDTMConverter;
44 46
45/** 47/**
46 @internal 48 @internal
47*/ 49*/
48class ResourceSharpDTM : public Resource 50class ResourceSharpDTM : public Resource
49{ 51{
50 Q_OBJECT 52 Q_OBJECT
51 53
52public: 54public:
53 55
54 /** 56 /**
55 Constructor. 57 Constructor.
56 58
57 @param cfg The config object where custom resource settings are stored. 59 @param cfg The config object where custom resource settings are stored.
58 */ 60 */
59 ResourceSharpDTM( const KConfig *cfg, bool syncable ); 61 ResourceSharpDTM( const KConfig *cfg, bool syncable );
60 62
61 /** 63 /**
62 Construct file resource on file @arg fileName using format @arg formatName. 64 Construct file resource on file @arg fileName using format @arg formatName.
63 */ 65 */
@@ -120,34 +122,35 @@ public:
120 */ 122 */
121 virtual void cleanUp(); 123 virtual void cleanUp();
122 124
123 /** 125 /**
124 * This method returns the number of elements that are currently in the resource. 126 * This method returns the number of elements that are currently in the resource.
125 */ 127 */
126 virtual int count() const; 128 virtual int count() const;
127 129
128 /** 130 /**
129 * This method removes all elements from the resource!! (Not from the addressbook) 131 * This method removes all elements from the resource!! (Not from the addressbook)
130 */ 132 */
131 virtual bool clear(); 133 virtual bool clear();
132 134
133 135
134protected slots: 136protected slots:
135 void fileChanged(); 137 void fileChanged();
136 138
137protected: 139protected:
138 void init( const QString &fileName ); 140 void init( const QString &fileName );
139 141
140 bool lock( const QString &fileName ); 142 bool lock( const QString &fileName );
141 void unlock( const QString &fileName ); 143 void unlock( const QString &fileName );
142 144
143private: 145private:
146 SlZDataBase* mAccess;
144 SharpDTMConverter* mConverter; 147 SharpDTMConverter* mConverter;
145 148
146 QString mLockUniqueName; 149 QString mLockUniqueName;
147 150
148 KDirWatch mDirWatch; 151 KDirWatch mDirWatch;
149}; 152};
150 153
151} 154}
152 155
153#endif 156#endif