stifui/qt/inc/uisetting.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 25 May 2010 12:43:15 +0300
branchRCL_3
changeset 12 aefcba28a3e0
parent 9 404ad6c9bc20
child 17 d40e813b23c0
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: QT C++ based Class.
*/

#ifndef UISETTING_H_
#define UISETTING_H_
#include <QHash>

const QString KShowOutput = "showoutput";
const QString KStyleSheet = "StyleSheet";


class UiSetting
    {
public:
    UiSetting();
    ~UiSetting();
    
public:
    QString ReadSetting(const QString& item);
    void SetSetting(const QString& item,const QString& value);
    
private:
    bool load();
    bool save();
    void loadDefault();
    QString getDefaultValue(const QString& item);
    
private:
    QHash<QString, QString> settingList;
    };

#endif /* UISETTING_H_ */