Diffstat (limited to 'kabc/plugins/olaccess/resourceolaccess.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kabc/plugins/olaccess/resourceolaccess.h | 21 |
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 | |||
@@ -21,59 +21,59 @@ | |||
21 | /* | 21 | /* |
22 | Enhanced Version of the file for platform independent KDE tools. | 22 | Enhanced Version of the file for platform independent KDE tools. |
23 | Copyright (c) 2004 Ulf Schenk | 23 | Copyright (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 | ||
40 | class SlZDataBase; | ||
41 | |||
42 | namespace KABC { | 42 | namespace KABC { |
43 | 43 | ||
44 | class ResourceConfigWidget; | 44 | class ResourceConfigWidget; |
45 | class SharpDTMConverter; | 45 | class OlaccessConverter; |
46 | 46 | ||
47 | /** | 47 | /** |
48 | @internal | 48 | @internal |
49 | */ | 49 | */ |
50 | class ResourceSharpDTM : public Resource | 50 | class Resourceolaccess : public Resource |
51 | { | 51 | { |
52 | Q_OBJECT | 52 | Q_OBJECT |
53 | 53 | ||
54 | public: | 54 | public: |
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. |
@@ -128,18 +128,17 @@ protected slots: | |||
128 | 128 | ||
129 | protected: | 129 | protected: |
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 | ||
135 | private: | 135 | private: |
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 | ||