vtuis/videotelui/inc/features/softkey/cvtuisoftkeys.h
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     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:  Softkey UI feature.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_VTUISOFTKEYS_H
       
    20 #define C_VTUISOFTKEYS_H
       
    21 
       
    22 #include "mvtuicommandui.h"
       
    23 #include "cvtuifeaturebase.h"
       
    24 
       
    25 class CEikButtonGroupContainer;
       
    26 class CVtUiSoftkeySetting;
       
    27 class CVtUiCommandModifyBase;
       
    28 class CVtUiSoftkeyValidationAction;
       
    29 class CVtUiSoftkeyContext;
       
    30 
       
    31 /**
       
    32  *  CVtUiSoftkeys
       
    33  *
       
    34  *  Sofktey UI feature definition.
       
    35  *
       
    36  *  @since S60 v3.2
       
    37  */
       
    38 NONSHARABLE_CLASS( CVtUiSoftkeys ) : public CVtUiFeatureBase,
       
    39     public MVtUiCommandUi
       
    40     {
       
    41 
       
    42 public:
       
    43 
       
    44     /**
       
    45      * Static constructor
       
    46      * @param aFeatureManager Reference to feature manager.
       
    47      * @param aButtonGroupContainer Reference to button group container.
       
    48      */
       
    49     static CVtUiSoftkeys* NewL( CVtUiFeatureManager& aFeatureManager,
       
    50         CEikButtonGroupContainer& aButtonGroupContainer );
       
    51 
       
    52     /**
       
    53      * Destructor
       
    54      */
       
    55     ~CVtUiSoftkeys();
       
    56 
       
    57 public:
       
    58 
       
    59     /**
       
    60      * Returns reference to application button group container.
       
    61      */
       
    62     CEikButtonGroupContainer& ButtonGroup();
       
    63 
       
    64 public: // from CVtUiFeatureBase
       
    65 
       
    66     /**
       
    67     * @see CVtUiFeatureBase::StartL
       
    68     */
       
    69     void StartL();
       
    70 
       
    71     /**
       
    72     * @see CVtUiFeatureBase::Stop
       
    73     */
       
    74     void Stop();
       
    75 
       
    76     /**
       
    77     * @see CVtUiFeatureBase::InitFeatureL
       
    78     */
       
    79     void InitFeatureL();
       
    80 
       
    81 public: // from MVtUiCommandUi
       
    82 
       
    83     /**
       
    84      * @see MVtUiCommandUi::RefreshL
       
    85      */
       
    86     void RefreshL();
       
    87 
       
    88     /**
       
    89      * @see MVtUiCommandUi::AddCommandModifierL
       
    90      */
       
    91     TInt AddCommandModifier( CVtUiCommandModifyBase& aModifier );
       
    92 
       
    93     /**
       
    94      * @see MVtUiCommandUi::RemoveCommandModifierL
       
    95      */
       
    96     void RemoveCommandModifier( CVtUiCommandModifyBase& aModifier );
       
    97 
       
    98 private:
       
    99 
       
   100     /**
       
   101      * Constructor
       
   102      */
       
   103     CVtUiSoftkeys( CVtUiFeatureManager& aFeatureManager,
       
   104         CEikButtonGroupContainer& aButtonGroupContainer );
       
   105 
       
   106     /**
       
   107      * 2nd constructor
       
   108      */
       
   109     void ConstructL();
       
   110 
       
   111 private:
       
   112 
       
   113     // Softkey container
       
   114     CEikButtonGroupContainer& iButtonGroupContainer;
       
   115 
       
   116     // Softkey context instance
       
   117     CVtUiSoftkeyContext* iSoftkeyCommandContext;
       
   118 
       
   119     // Softkey setter
       
   120     CVtUiSoftkeySetting* iSoftkeySetting;
       
   121 
       
   122     // Softkey validation action instance
       
   123     CVtUiSoftkeyValidationAction* iSoftkeyValidationAction;
       
   124 
       
   125     };
       
   126 
       
   127 #endif // C_VTUISOFTKEYS_H