logsui/logsapp/tsrc/ut_logsapp/stubs/xqsettingsmanager.h
changeset 18 acd4e87b24b4
equal deleted inserted replaced
17:90fe74753f71 18:acd4e87b24b4
       
     1 /*
       
     2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef XQSETTINGSMANAGER_H
       
    19 #define XQSETTINGSMANAGER_H
       
    20 
       
    21 #include "xqsettingskey.h"
       
    22 
       
    23 // CLASS DECLARATION
       
    24 class XQSettingsManager
       
    25 {
       
    26 public:
       
    27 
       
    28     enum Type
       
    29     {
       
    30         TypeVariant = 0,
       
    31         TypeInt,
       
    32         TypeDouble,
       
    33         TypeString,
       
    34         TypeByteArray
       
    35     };
       
    36 
       
    37     XQSettingsManager();
       
    38     ~XQSettingsManager();
       
    39 
       
    40     QVariant readItemValue(const XQSettingsKey& key, XQSettingsManager::Type type = XQSettingsManager::TypeVariant);
       
    41     bool writeItemValue(const XQSettingsKey& key, const QVariant& value);
       
    42     
       
    43 public:
       
    44     static bool mFailed;
       
    45     static int mCurrentVal;
       
    46 };
       
    47 
       
    48 #endif // XQSETTINGSMANAGER_H
       
    49 
       
    50 // End of file