camerauis/cameraxui/cxengine/tsrc/fakeclasses/cxefakesettings.cpp
author hgs
Fri, 06 Aug 2010 10:03:37 +0300
changeset 46 c826656d6714
parent 41 67457b2ffb33
child 52 7e18d488ac5f
permissions -rw-r--r--
201031

/*
* Copyright (c) 2009-2010 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:
*
*/

#include "cxefakesettings.h"


CxeFakeSettings::CxeFakeSettings()
{
}

CxeFakeSettings::~CxeFakeSettings()
{
}


void CxeFakeSettings::get(long int uid,
         unsigned long int key,
         Cxe::SettingKeyType type,
         QVariant &value) const
{
    Q_UNUSED(uid);
    Q_UNUSED(key);
    Q_UNUSED(type);
    Q_UNUSED(value);
}

bool CxeFakeSettings::listenForSetting(const QString &settingKey, QObject *target, const char *slot)
{
    Q_UNUSED(settingKey);
    Q_UNUSED(target);
    Q_UNUSED(slot);
    return true;
}

CxeError::Id CxeFakeSettings::getVariationValue(const QString &key, QVariant &value)
{
    int variation = mVariationKeyHash[key];
    value = QVariant(variation);
    return CxeError::None;
}

void CxeFakeSettings::getValue(const QString &key, QVariant &value) const
{
    value = mSettingKeyHash[key];
}

void CxeFakeSettings::setValue(const QString &key, const QVariant &newValue)
{
    mSettingKeyHash[key] = newValue;
    emit settingValueChanged(key, newValue);
}



void CxeFakeSettings::reset()
{
}


void CxeFakeSettings::emulate(long int uid, unsigned long int key, QVariant value)
{
    emit settingValueChanged(uid, key, value);
}