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