camerauis/cameraxui/cxengine/inc/api/cxefeaturemanager.h
branchRCL_3
changeset 54 bac7acad7cb3
parent 53 61bc0f252b2b
child 57 2c87b2808fd7
equal deleted inserted replaced
53:61bc0f252b2b 54:bac7acad7cb3
     1 /*
       
     2 * Copyright (c) 2009-2010 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 CXEFEATUREMANAGER_H
       
    19 #define CXEFEATUREMANAGER_H
       
    20 
       
    21 #include <QMetaType>
       
    22 #include "cxeerror.h"
       
    23 
       
    24 
       
    25 /*!
       
    26 * Handling and accessing configured run-time values for specific features
       
    27 * Handles ICM and CxUi run-time features
       
    28 */
       
    29 class CxeFeatureManager
       
    30 {
       
    31 public:
       
    32     virtual ~CxeFeatureManager() {}
       
    33 
       
    34     /*!
       
    35     * Returns if a feature is supported or not
       
    36     * true -> supported
       
    37     * false -> not supported
       
    38     */
       
    39     virtual CxeError::Id isFeatureSupported(const QString& key, bool& value) const = 0;
       
    40 
       
    41     /*!
       
    42     * We retrieve all the configured values for the given key
       
    43     */
       
    44     virtual CxeError::Id configuredValues(const QString& key, QList<int>& values) = 0;
       
    45 
       
    46 protected:
       
    47     CxeFeatureManager() {}
       
    48 };
       
    49 
       
    50 #endif // CXEFEATUREMANAGER_H
       
    51 
       
    52 // end  of file