From ead6092b5674e68911fddb5153742b0733a637c5 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Mon, 11 Feb 2013 15:06:00 +0000 Subject: [PATCH] code style changes --- src/settings.h | 45 +++++++++++++++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 14 deletions(-) diff --git a/src/settings.h b/src/settings.h index 56851bb6..56999d60 100755 --- a/src/settings.h +++ b/src/settings.h @@ -1,5 +1,5 @@ /******************************************************************************\ - * Copyright (c) 2004-2007 + * Copyright (c) 2004-2013 * * Author(s): * Volker Fischer @@ -54,21 +54,38 @@ protected: void SetFileName ( const QString& sNFiName ); // init file access function for read/write - void SetNumericIniSet ( QDomDocument& xmlFile, const QString& strSection, - const QString& strKey, const int iValue = 0 ); - bool GetNumericIniSet ( const QDomDocument& xmlFile, const QString& strSection, - const QString& strKey, const int iRangeStart, - const int iRangeStop, int& iValue ); - void SetFlagIniSet ( QDomDocument& xmlFile, const QString& strSection, - const QString& strKey, const bool bValue = false ); - bool GetFlagIniSet ( const QDomDocument& xmlFile, const QString& strSection, - const QString& strKey, bool& bValue ); + void SetNumericIniSet ( QDomDocument& xmlFile, + const QString& strSection, + const QString& strKey, + const int iValue = 0 ); + + bool GetNumericIniSet ( const QDomDocument& xmlFile, + const QString& strSection, + const QString& strKey, + const int iRangeStart, + const int iRangeStop, + int& iValue ); + + void SetFlagIniSet ( QDomDocument& xmlFile, + const QString& strSection, + const QString& strKey, + const bool bValue = false ); + + bool GetFlagIniSet ( const QDomDocument& xmlFile, + const QString& strSection, + const QString& strKey, + bool& bValue ); // actual working function for init-file access - QString GetIniSetting( const QDomDocument& xmlFile, const QString& sSection, - const QString& sKey, const QString& sDefaultVal = "" ); - void PutIniSetting ( QDomDocument& xmlFile, const QString& sSection, - const QString& sKey, const QString& sValue = "" ); + QString GetIniSetting( const QDomDocument& xmlFile, + const QString& sSection, + const QString& sKey, + const QString& sDefaultVal = "" ); + + void PutIniSetting ( QDomDocument& xmlFile, + const QString& sSection, + const QString& sKey, + const QString& sValue = "" ); // pointer to the client/server object which stores the various settings CClient* pClient; // for client