vtuis/videotelui/inc/features/menu/cvtuimenus.h
branchRCL_3
changeset 35 779871d1e4f4
parent 0 ed9695c8bcbe
equal deleted inserted replaced
34:f15ac8e65a02 35: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 UI feature.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_VTUIMENUS_H
       
    20 #define C_VTUIMENUS_H
       
    21 
       
    22 #include "cvtuifeaturebase.h"
       
    23 #include "mvtuicommandui.h"
       
    24 
       
    25 class CVtUiMenuContext;
       
    26 class CVtUiMenuItemDimmerAction;
       
    27 class CEikMenuPane;
       
    28 class CVtUiCommandModifyBase;
       
    29 
       
    30 /**
       
    31  *  CVtUiMenus
       
    32  *
       
    33  *  Menu feature definition.
       
    34  *
       
    35  *  @since S60 v3.2
       
    36  */
       
    37 class CVtUiMenus : public CVtUiFeatureBase, public MVtUiCommandUi
       
    38     {
       
    39 
       
    40 public:
       
    41 
       
    42     /**
       
    43      * Static constructor
       
    44      */
       
    45     static CVtUiMenus* NewL( CVtUiFeatureManager& aFeatureManager );
       
    46 
       
    47     /**
       
    48      * Destructor
       
    49      */
       
    50     ~CVtUiMenus();
       
    51 
       
    52 public:
       
    53 
       
    54     /**
       
    55      * Sets menu context.
       
    56      */
       
    57     void SetMenuPane( CEikMenuPane* aMenuPane );
       
    58 
       
    59 public: // from CVtUiFeatureBase
       
    60 
       
    61     /**
       
    62     * @see CVtUiFeatureBase::StartL
       
    63     */
       
    64     void StartL();
       
    65 
       
    66     /**
       
    67     * @see CVtUiFeatureBase::Stop
       
    68     */
       
    69     void Stop();
       
    70 
       
    71     /**
       
    72     * @see CVtUiFeatureBase::InitFeatureL
       
    73     */
       
    74     void InitFeatureL();
       
    75 
       
    76 public: // from MVtUiCommandUi
       
    77 
       
    78     /**
       
    79      * @see MVtUiCommandUi::RefreshL
       
    80      */
       
    81     void RefreshL();
       
    82 
       
    83     /**
       
    84      * @see MVtUiCommandUi::AddCommandModifier
       
    85      */
       
    86     TInt AddCommandModifier( CVtUiCommandModifyBase& );
       
    87 
       
    88     /**
       
    89      * @see MVtUiCommandUi::RemoveCommandModifier
       
    90      */
       
    91     void RemoveCommandModifier( CVtUiCommandModifyBase& );
       
    92 
       
    93 private:
       
    94 
       
    95     /**
       
    96      * Constructor
       
    97      */
       
    98     CVtUiMenus( CVtUiFeatureManager& aFeatureManager );
       
    99 
       
   100     /**
       
   101      * 2nd constructor
       
   102      */
       
   103     void ConstructL();
       
   104 
       
   105 private:
       
   106 
       
   107     // Menu context instance
       
   108     CVtUiMenuContext* iMenuCommandContext;
       
   109 
       
   110     // Menu dimmer action instance
       
   111     CVtUiMenuItemDimmerAction* iMenuDimmerAction;
       
   112 
       
   113     };
       
   114 
       
   115 #endif // C_VTUIMENUS_H