summaryrefslogtreecommitdiff
path: root/include/tools/config.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-01 13:55:55 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-02 06:37:53 +0000
commitd3d4b8691968810bb57bbd94dde39bb7be4be4da (patch)
tree0a2720842b799b0803d879a4ae3d021ff7777f4a /include/tools/config.hxx
parenta28231b72b5a87dddffad82a34deac4e5bb76ed1 (diff)
loplugin:unusedmethods tools
Change-Id: I45f5489233879126d4f9ee3d01db504d950bb597 Reviewed-on: https://gerrit.libreoffice.org/16656 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/tools/config.hxx')
-rw-r--r--include/tools/config.hxx31
1 files changed, 12 insertions, 19 deletions
diff --git a/include/tools/config.hxx b/include/tools/config.hxx
index d4b503064a1b..772c1c7da8f9 100644
--- a/include/tools/config.hxx
+++ b/include/tools/config.hxx
@@ -43,30 +43,23 @@ public:
Config( const OUString& rFileName );
~Config();
- const OUString& GetPathName() const { return maFileName; }
+ void SetGroup(const OString& rGroup);
+ const OString& GetGroup() const { return maGroupName; }
+ void DeleteGroup(const OString& rGroup);
+ OString GetGroupName(sal_uInt16 nGroup) const;
+ sal_uInt16 GetGroupCount() const;
+ bool HasGroup(const OString& rGroup) const;
- void SetGroup(const OString& rGroup);
- const OString& GetGroup() const { return maGroupName; }
- void DeleteGroup(const OString& rGroup);
- OString GetGroupName(sal_uInt16 nGroup) const;
- sal_uInt16 GetGroupCount() const;
- bool HasGroup(const OString& rGroup) const;
-
- OString ReadKey(const OString& rKey) const;
- OString ReadKey(const OString& rKey, const OString& rDefault) const;
+ OString ReadKey(const OString& rKey) const;
+ OString ReadKey(const OString& rKey, const OString& rDefault) const;
void WriteKey(const OString& rKey, const OString& rValue);
- void DeleteKey(const OString& rKey);
- OString GetKeyName(sal_uInt16 nKey) const;
- OString ReadKey(sal_uInt16 nKey) const;
- sal_uInt16 GetKeyCount() const;
+ void DeleteKey(const OString& rKey);
+ OString GetKeyName(sal_uInt16 nKey) const;
+ OString ReadKey(sal_uInt16 nKey) const;
+ sal_uInt16 GetKeyCount() const;
- bool IsLocked() const { return (mnLockCount != 0); }
void Flush();
- void EnablePersistence( bool bPersistence = true )
- { mbPersistence = bPersistence; }
- bool IsPersistenceEnabled() const { return mbPersistence; }
-
private:
Config( const Config& rConfig ) SAL_DELETED_FUNCTION;
Config& operator = ( const Config& rConfig ) SAL_DELETED_FUNCTION;