resourcemgmt/hwresourcesmgr/test/plugins/targetmodifierplugin/inc/hwrmdefaultlighttargetmodifierplugin.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2006-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 
       
    19 
       
    20 #ifndef __HWRMDDEFAULTLIGHTTARGETMODIFIERPLUGIN_H_
       
    21 #define __HWRMDDEFAULTLIGHTTARGETMODIFIERPLUGIN_H_
       
    22 
       
    23 #include <hwrmtargetmodifierplugin.h>
       
    24 
       
    25 /**
       
    26 *  Default Target Modifier Plugin.
       
    27 *  Responsible for modifying targets.
       
    28 *
       
    29 */
       
    30 class CHWRMDefaultLightTargetModifierPlugin : public CHWRMTargetModifierPlugin
       
    31     {
       
    32     public:
       
    33 
       
    34         static CHWRMDefaultLightTargetModifierPlugin* NewL();
       
    35         
       
    36         virtual ~CHWRMDefaultLightTargetModifierPlugin();
       
    37 
       
    38         /**
       
    39         * Method to modify target according to customer specific needs.
       
    40         *
       
    41         * @see CHWRMTargetModifierPlugin::ModifyTargetL 
       
    42         */
       
    43         virtual TInt ModifyTargetL( TInt aTarget );
       
    44         
       
    45         /**
       
    46         * Method to get full system target.
       
    47         *
       
    48         * @see CHWRMTargetModifierPlugin::GetFullSystemTarget 
       
    49         */
       
    50         virtual TInt GetFullSystemTarget();
       
    51 
       
    52     private: // Construction
       
    53 
       
    54         CHWRMDefaultLightTargetModifierPlugin();
       
    55 
       
    56         TBool IsFeatureSupported(const TUid aFeatureUid);
       
    57         
       
    58         void ConstructL();
       
    59         
       
    60     private: 
       
    61         TBool                  iCoverDisplaySupported;    // ETrue if cover display is supported by platform
       
    62         TBool                  iGripSupported;            // ETrue if grip is supported by platform
       
    63     };
       
    64 
       
    65 #endif // __HWRMDDEFAULTLIGHTTARGETMODIFIERPLUGIN_H_