diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-05-15 14:10:16 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-05-15 14:10:16 -0500 |
commit | d3a9d56143cf668c7d29b26a324a424d02036371 (patch) | |
tree | aa69f1c1e1facdce0ad705d66b07d2af0b0e2c31 /tdecore/kinstance.h | |
parent | fffcd810f84ca3ad146a43b97aed02067adcf4f6 (diff) | |
download | tdelibs-d3a9d56143cf668c7d29b26a324a424d02036371.tar.gz tdelibs-d3a9d56143cf668c7d29b26a324a424d02036371.zip |
Add the ability to force read-only configuration file access in a TDE application
Force tde-config to use read-only access
This closes Bug 293
Diffstat (limited to 'tdecore/kinstance.h')
-rw-r--r-- | tdecore/kinstance.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tdecore/kinstance.h b/tdecore/kinstance.h index 75cc4b46a..444a2d8c8 100644 --- a/tdecore/kinstance.h +++ b/tdecore/kinstance.h @@ -69,7 +69,7 @@ class TDECORE_EXPORT KInstance * Only for K(Unique)Application * Initialize from src and delete it. */ - + KInstance( KInstance* src ); /** @@ -96,6 +96,14 @@ class TDECORE_EXPORT KInstance KSharedConfig *sharedConfig() const; /** + * Set a read-only flag on the configuration files + * This must be called before config() or dirs() to have any effect + * Defaults to FALSE + * @param ro read only if TRUE + */ + void setConfigReadOnly(bool ro); + + /** * Returns an iconloader object. * @return the iconloader object. */ @@ -162,6 +170,7 @@ protected: virtual void virtual_hook( int id, void* data ); private: KInstancePrivate *d; + bool m_configReadOnly; }; #endif |