summaryrefslogtreecommitdiffabout
path: root/microkde/kresources/resource.cpp
Side-by-side diff
Diffstat (limited to 'microkde/kresources/resource.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kresources/resource.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/microkde/kresources/resource.cpp b/microkde/kresources/resource.cpp
index 4f69540..f79bcd0 100644
--- a/microkde/kresources/resource.cpp
+++ b/microkde/kresources/resource.cpp
@@ -41,2 +41,3 @@ class Resource::ResourcePrivate
bool mReadOnly;
+ bool mIncludeInSync;
QString mName;
@@ -65,2 +66,3 @@ Resource::Resource( const KConfig* config )
d->mReadOnly = cfg->readBoolEntry( "ResourceIsReadOnly", false );
+ d->mIncludeInSync = cfg->readBoolEntry( "ResourceIncludeInSync", true );;
d->mActive = cfg->readBoolEntry( "ResourceIsActive", true );
@@ -71,2 +73,3 @@ Resource::Resource( const KConfig* config )
d->mReadOnly = false;
+ d->mIncludeInSync = true;
d->mActive = true;
@@ -84,4 +87,2 @@ void Resource::writeConfig( KConfig* config )
{
-
-
config->writeEntry( "ResourceType", d->mType );
@@ -89,2 +90,3 @@ void Resource::writeConfig( KConfig* config )
config->writeEntry( "ResourceIsReadOnly", d->mReadOnly );
+ config->writeEntry( "ResourceIncludeInSync", d->mIncludeInSync );
config->writeEntry( "ResourceIsActive", d->mActive );
@@ -151,2 +153,10 @@ QString Resource::type() const
+void Resource::setIncludeInSync( bool value )
+{
+ d->mIncludeInSync = value;
+}
+bool Resource::includeInSync() const
+{
+ return d->mIncludeInSync;
+}
void Resource::setReadOnly( bool value )