Diffstat (limited to 'microkde/kresources/managerimpl.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | microkde/kresources/managerimpl.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/microkde/kresources/managerimpl.h b/microkde/kresources/managerimpl.h index a049bcc..0425279 100644 --- a/microkde/kresources/managerimpl.h +++ b/microkde/kresources/managerimpl.h | |||
@@ -21,6 +21,13 @@ | |||
21 | Boston, MA 02111-1307, USA. | 21 | Boston, MA 02111-1307, USA. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | /* | ||
25 | Enhanced Version of the file for platform independent KDE tools. | ||
26 | Copyright (c) 2004 Ulf Schenk | ||
27 | |||
28 | $Id$ | ||
29 | */ | ||
30 | |||
24 | #ifndef KRESOURCES_MANAGERIMPL_H | 31 | #ifndef KRESOURCES_MANAGERIMPL_H |
25 | #define KRESOURCES_MANAGERIMPL_H | 32 | #define KRESOURCES_MANAGERIMPL_H |
26 | 33 | ||
@@ -58,7 +65,7 @@ class ManagerImpl : public QObject | |||
58 | { | 65 | { |
59 | Q_OBJECT | 66 | Q_OBJECT |
60 | public: | 67 | public: |
61 | ManagerImpl( const QString &family ); | 68 | ManagerImpl( const QString &family, bool syncable); |
62 | ~ManagerImpl(); | 69 | ~ManagerImpl(); |
63 | 70 | ||
64 | void readConfig( KConfig * ); | 71 | void readConfig( KConfig * ); |
@@ -83,6 +90,11 @@ class ManagerImpl : public QObject | |||
83 | 90 | ||
84 | void setListener( ManagerImplListener *listener ); | 91 | void setListener( ManagerImplListener *listener ); |
85 | 92 | ||
93 | /** | ||
94 | Return true, if the manager manages syncable resources. | ||
95 | */ | ||
96 | bool manageSyncable() const; | ||
97 | |||
86 | public slots: | 98 | public slots: |
87 | void resourceChanged( Resource *resource ); | 99 | void resourceChanged( Resource *resource ); |
88 | 100 | ||
@@ -91,15 +103,16 @@ class ManagerImpl : public QObject | |||
91 | 103 | ||
92 | private: | 104 | private: |
93 | void createStandardConfig(); | 105 | void createStandardConfig(); |
94 | 106 | ||
95 | Resource *readResourceConfig( const QString& identifier, bool checkActive ); | 107 | Resource *readResourceConfig( const QString& identifier, bool checkActive ); |
96 | void writeResourceConfig( Resource *resource, bool checkActive ); | 108 | void writeResourceConfig( Resource *resource, bool checkActive ); |
97 | 109 | ||
98 | void removeResource( Resource *resource ); | 110 | void removeResource( Resource *resource ); |
99 | Resource *getResource( Resource *resource ); | 111 | Resource *getResource( Resource *resource ); |
100 | Resource *getResource( const QString& identifier ); | 112 | Resource *getResource( const QString& identifier ); |
101 | 113 | ||
102 | QString mFamily; | 114 | QString mFamily; |
115 | bool mSyncable; | ||
103 | KConfig *mConfig; | 116 | KConfig *mConfig; |
104 | KConfig *mStdConfig; | 117 | KConfig *mStdConfig; |
105 | Resource *mStandard; | 118 | Resource *mStandard; |