summaryrefslogtreecommitdiffabout
path: root/kabc/plugins/olaccess/resourceolaccess.h
authorzautrix <zautrix>2005-10-27 10:34:56 (UTC)
committer zautrix <zautrix>2005-10-27 10:34:56 (UTC)
commit29c7448b3c54e8d579732d10f144e12f7167c3c3 (patch) (unidiff)
treeae613037eaa897d2f7bc084d0b9e6954c630d985 /kabc/plugins/olaccess/resourceolaccess.h
parenteb83d8b5542de9ca0c421ad6aca2913b502bbe78 (diff)
downloadkdepimpi-29c7448b3c54e8d579732d10f144e12f7167c3c3.zip
kdepimpi-29c7448b3c54e8d579732d10f144e12f7167c3c3.tar.gz
kdepimpi-29c7448b3c54e8d579732d10f144e12f7167c3c3.tar.bz2
commit
Diffstat (limited to 'kabc/plugins/olaccess/resourceolaccess.h') (more/less context) (show whitespace changes)
-rw-r--r--kabc/plugins/olaccess/resourceolaccess.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/kabc/plugins/olaccess/resourceolaccess.h b/kabc/plugins/olaccess/resourceolaccess.h
index 64d06f9..0066331 100644
--- a/kabc/plugins/olaccess/resourceolaccess.h
+++ b/kabc/plugins/olaccess/resourceolaccess.h
@@ -17,67 +17,67 @@
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
30#define KABC_RESOURCESHARPDTM_H 30
31#ifndef KABC_RESOURCEolaccess_H
32#define KABC_RESOURCEolaccess_H
31 33
32#include <kconfig.h> 34#include <kconfig.h>
33#include <kdirwatch.h> 35#include <kdirwatch.h>
34 36
35#include <sys/types.h> 37#include <sys/types.h>
36 38
37#include "resource.h" 39#include "resource.h"
38 40
39 41
40class SlZDataBase;
41
42namespace KABC { 42namespace KABC {
43 43
44class ResourceConfigWidget; 44class ResourceConfigWidget;
45class SharpDTMConverter; 45class OlaccessConverter;
46 46
47/** 47/**
48 @internal 48 @internal
49*/ 49*/
50class ResourceSharpDTM : public Resource 50class Resourceolaccess : public Resource
51{ 51{
52 Q_OBJECT 52 Q_OBJECT
53 53
54public: 54public:
55 55
56 /** 56 /**
57 Constructor. 57 Constructor.
58 58
59 @param cfg The config object where custom resource settings are stored. 59 @param cfg The config object where custom resource settings are stored.
60 */ 60 */
61 ResourceSharpDTM( const KConfig *cfg ); 61 Resourceolaccess( const KConfig *cfg );
62 62
63 /** 63 /**
64 Construct file resource on file @arg fileName using format @arg formatName. 64 Construct file resource on file @arg fileName using format @arg formatName.
65 */ 65 */
66 ResourceSharpDTM( const QString &fileName ); 66 Resourceolaccess( const QString &fileName );
67 67
68 /** 68 /**
69 * Destructor. 69 * Destructor.
70 */ 70 */
71 ~ResourceSharpDTM(); 71 ~Resourceolaccess();
72 72
73 /** 73 /**
74 Writes the config back. 74 Writes the config back.
75 */ 75 */
76 virtual void writeConfig( KConfig *cfg ); 76 virtual void writeConfig( KConfig *cfg );
77 77
78 /** 78 /**
79 * Tries to open the file and checks for the proper format. 79 * Tries to open the file and checks for the proper format.
80 * This method should be called before @ref load(). 80 * This method should be called before @ref load().
81 */ 81 */
82 virtual bool doOpen(); 82 virtual bool doOpen();
83 83
@@ -124,23 +124,22 @@ public:
124 124
125 125
126protected slots: 126protected slots:
127 void fileChanged(); 127 void fileChanged();
128 128
129protected: 129protected:
130 void init( const QString &fileName ); 130 void init( const QString &fileName );
131 131
132 bool lock( const QString &fileName ); 132 bool lock( const QString &fileName );
133 void unlock( const QString &fileName ); 133 void unlock( const QString &fileName );
134 134
135private: 135private:
136 SlZDataBase* mAccess; 136 OlaccessConverter* mConverter;
137 SharpDTMConverter* mConverter;
138 137
139 QString mLockUniqueName; 138 QString mLockUniqueName;
140 139
141 KDirWatch mDirWatch; 140 KDirWatch mDirWatch;
142}; 141};
143 142
144} 143}
145 144
146#endif 145#endif