vtuis/videotelui/inc/features/toolbar/cvtuitoolbarcontext.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:  Toolbar context class definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_VTUITOOLBARCONTEXT_H
       
    20 #define C_VTUITOOLBARCONTEXT_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "cvtuicmdcontext.h"
       
    25 
       
    26 class CVtUiCmdValidatorBase;
       
    27 
       
    28 /** Toolbar context reference priority */
       
    29 const TInt KVtUiToolbarContextPriority = 50;
       
    30 
       
    31 /**
       
    32 *  CVtUiToolbarContext
       
    33 *
       
    34 *  Toolbar context class definition.
       
    35 *
       
    36 *  @since S60 v3.2
       
    37 */
       
    38 class  CVtUiToolbarContext : public CVtUiCmdContext
       
    39     {
       
    40     public: // public methods
       
    41 
       
    42         /**
       
    43          * C++ destructor.
       
    44          *
       
    45          */
       
    46         ~CVtUiToolbarContext();
       
    47 
       
    48         /**
       
    49         * Leave safe destructor.
       
    50         * @param aCommandManager Reference to command manager.
       
    51         */
       
    52         static CVtUiToolbarContext* NewL(
       
    53             MVtUiCommandManager& aCommandManager );
       
    54 
       
    55     public: // from CVtUiCmdContext
       
    56 
       
    57         /**
       
    58         *  @see CVtUiCmdContext::ValidateL
       
    59         */
       
    60         void ValidateL( CVtUiCmdValidationActionBase& aAction );
       
    61 
       
    62     private:
       
    63 
       
    64         /**
       
    65         * C++ constructor
       
    66         *
       
    67         * @param aCommandManager Reference to command manager.
       
    68         */
       
    69         CVtUiToolbarContext( MVtUiCommandManager& aCommandManager );
       
    70 
       
    71         /**
       
    72          * 2nd consttuctor, may leave.
       
    73          */
       
    74         void ConstructL();
       
    75         
       
    76     };
       
    77 
       
    78 #endif // C_VTUITOOLBARCONTEXT_H