--- a/camerauis/cameraxui/cxengine/src/cxefeaturemanagerimp.cpp Tue Aug 31 15:03:46 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,121 +0,0 @@
-/*
-* 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:
-*
-*/
-/*
-* Symbian specific settings handling
-*/
-
-#include <QCoreApplication>
-#include <QVariant>
-#include <QList>
-#include <QMetaType>
-
-#include "cxesettings.h"
-#include "cxefeaturemanagerimp.h"
-#include "cxutils.h"
-#include "cxeerror.h"
-
-
-/*!
-* Returns if a feature is supported or not
-* @param key Feature key
-* @param supported Returned boolean to indicate whether feature is supported or not
-* @return Error code
-*/
-CxeError::Id CxeFeatureManagerImp::isFeatureSupported(const QString& key, bool& supported) const
-{
- CX_DEBUG_ENTER_FUNCTION();
-
- QVariant value;
- CxeError::Id err = mSettings.getVariationValue(key, value);
- if (err == CxeError::None) {
- QList<QVariant> values = qVariantValue<QList<QVariant> >(value);
- supported = values[0].toInt();
- } else {
- supported = false;
- }
-
- CX_DEBUG_EXIT_FUNCTION();
-
- return err;
-}
-
-
-
-/*!
-* Retrieves all the configured values for the given key
-* @param key Feature key
-* @param values Returned values
-* @return Error code
-*/
-CxeError::Id CxeFeatureManagerImp::configuredValues(const QString& key,QList<int>& values)
-{
- CX_DEBUG_ENTER_FUNCTION();
-
- values.clear();
-
- QVariant variant;
- CxeError::Id err = mSettings.getVariationValue(key, variant);
-
- if(CxeError::None == err) {
- QVariantList list;
- list = qVariantValue<QVariantList>(variant);
-
- CX_DEBUG( ("CxeFeatureManagerImp::configuredValues <> count: %d",list.count() ) );
-
- foreach (QVariant value, list ) {
- // go through the settings list.
- QString dataString = value.toString();
- bool isInt;
- int intValue = dataString.toInt(&isInt,0); // 0 denotes base, check the API
-
- if (isInt) {
- CX_DEBUG( ("CxeFeatureManagerImp::configuredValues <> value = %d",intValue) );
- values.append(intValue);
- } else {
- err = CxeError::NotSupported;
- }
- }
- list.clear();
- }
-
- CX_DEBUG_EXIT_FUNCTION();
- return err;
-}
-
-
-/*
-*CxeFeatureManagerImp::CxeFeatureManagerImp
-*/
-CxeFeatureManagerImp::CxeFeatureManagerImp(CxeSettings &settings)
-: mSettings(settings)
-{
- CX_DEBUG_ENTER_FUNCTION();
- CX_DEBUG_EXIT_FUNCTION();
-}
-
-
-/*
-*CxeFeatureManagerImp::~CxeFeatureManagerImp
-*/
-CxeFeatureManagerImp::~CxeFeatureManagerImp()
-{
- CX_DEBUG_ENTER_FUNCTION();
- CX_DEBUG_EXIT_FUNCTION();
-}
-
-
-// end of file