vtuis/videotelui/inc/features/menu/cvtuimenuitemdimmeraction.h
branchRCL_3
changeset 25 779871d1e4f4
parent 0 ed9695c8bcbe
equal deleted inserted replaced
24:f15ac8e65a02 25:779871d1e4f4
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Menu dimmer action class definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_VTUIMENUITEMDIMMERACTION_H
       
    20 #define C_VTUIMENUITEMDIMMERACTION_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "cvtuicmdvalidationactionbase.h"
       
    25 
       
    26 class CEikMenuPane;
       
    27 
       
    28 /**
       
    29  *  CVtUiCmdValidationActionBase
       
    30  *
       
    31  *  Menu item dimmer action definition.
       
    32  *
       
    33  *  @since S60 v3.2
       
    34  */
       
    35 class CVtUiMenuItemDimmerAction : public CVtUiCmdValidationActionBase
       
    36     {
       
    37 
       
    38 public:
       
    39 
       
    40     /**
       
    41      * Leave-safe constructor.
       
    42      *
       
    43      */
       
    44     static CVtUiMenuItemDimmerAction* NewL();
       
    45 
       
    46     /**
       
    47      * Sets menu pane instance.
       
    48      *
       
    49      */
       
    50     void SetMenuPane( CEikMenuPane* aMenuPane );
       
    51 
       
    52 public: // from CVtUiCmdValidationActionBase
       
    53 
       
    54     /**
       
    55      * @see CVtUiCmdValidationActionBase::ProcessL
       
    56      */
       
    57     void ProcessL( const MVtUiCmdValidatorCallBack& aCallBack );
       
    58 
       
    59     /**
       
    60      * @see CVtUiCmdValidationActionBase::EndProcess
       
    61      */
       
    62     void EndProcess();
       
    63 
       
    64 private:
       
    65 
       
    66     /**
       
    67      * C++ constructor.
       
    68      *
       
    69      */
       
    70     CVtUiMenuItemDimmerAction();
       
    71 
       
    72     /**
       
    73      * Sets given menu command dimmed in menu.
       
    74      *
       
    75      */
       
    76     void SetItemDimmed( TInt aCommandId );
       
    77 
       
    78 private: // data
       
    79 
       
    80     // Menu pane instance this action is currently working on
       
    81     CEikMenuPane* iMenuPane;
       
    82 
       
    83     };
       
    84 
       
    85 #endif // C_VTUIMENUITEMDIMMERACTION_H