-rw-r--r-- | microkde/kresources/manager.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/microkde/kresources/manager.h b/microkde/kresources/manager.h index b5e97fc..7e9e19a 100644 --- a/microkde/kresources/manager.h +++ b/microkde/kresources/manager.h @@ -6,2 +6,3 @@ Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org> + Copyright (c) 2004 Ulf Schenk @@ -23,2 +24,9 @@ +/* +Enhanced Version of the file for platform independent KDE tools. +Copyright (c) 2004 Ulf Schenk + +$Id$ +*/ + #ifndef KRESOURCES_MANAGER_H @@ -161,3 +169,8 @@ class Manager : private ManagerImplListener - Manager( const QString &family ) + /** + Return true, if the manager manages syncable resources. + */ + bool manageSyncable() { return mImpl->manageSyncable(); } + + Manager( const QString &family, bool syncable ) { @@ -166,3 +179,3 @@ class Manager : private ManagerImplListener // because of the Factory::self() pattern - mImpl = new ManagerImpl( family ); + mImpl = new ManagerImpl( family, syncable ); mImpl->setListener( this ); @@ -249,2 +262,3 @@ class Manager : private ManagerImplListener by @ref resourceTypeNames() + * @param syncable If the resource should support syncing capabilities. */ @@ -252,3 +266,3 @@ class Manager : private ManagerImplListener { - return (T *)( mFactory->resource( type, 0 ) ); + return (T *)( mFactory->resource( type, 0, mImpl->manageSyncable() ) ); } |