vtuis/videotelui/src/features/toolbar/cvtuitoolbarcontext.cpp
changeset 18 d9b6a8729acd
parent 4 6dc066157ed4
child 23 c378a0498b84
child 27 dcbddbbaf8fd
equal deleted inserted replaced
4:6dc066157ed4 18:d9b6a8729acd
     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 implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <cvtlogger.h>
       
    20 
       
    21 #include "cvtuitoolbarcontext.h"
       
    22 
       
    23 // ======== LOCAL FUNCTIONS ========
       
    24 
       
    25 // ======== MEMBER FUNCTIONS ========
       
    26 
       
    27 // ---------------------------------------------------------------------------
       
    28 // CVtUiToolbarContext::~CVtUiToolbarContext
       
    29 // ---------------------------------------------------------------------------
       
    30 //
       
    31 CVtUiToolbarContext::~CVtUiToolbarContext()
       
    32     {
       
    33     __VTPRINTENTER( "ToolbarCtx.~" )
       
    34     UnregisterCommandContext();
       
    35     __VTPRINTEXIT( "ToolbarCtx.~" )
       
    36     }
       
    37 
       
    38 // ---------------------------------------------------------------------------
       
    39 // CVtUiToolbarContext::NewL
       
    40 // ---------------------------------------------------------------------------
       
    41 //
       
    42 CVtUiToolbarContext* CVtUiToolbarContext::NewL(
       
    43     MVtUiCommandManager& aCommandManager )
       
    44     {
       
    45     __VTPRINTENTER( "ToolbarCtx.NewL" )
       
    46     CVtUiToolbarContext* self =
       
    47         new ( ELeave ) CVtUiToolbarContext( aCommandManager );
       
    48     CleanupStack::PushL( self );
       
    49     self->ConstructL();
       
    50     CleanupStack::Pop(); // self
       
    51     __VTPRINTEXIT( "ToolbarCtx.NewL" )
       
    52     return self;
       
    53     }
       
    54 
       
    55 // ---------------------------------------------------------------------------
       
    56 // CVtUiToolbarContext::ValidateL
       
    57 // ---------------------------------------------------------------------------
       
    58 //
       
    59 void CVtUiToolbarContext::ValidateL( CVtUiCmdValidationActionBase& aAction )
       
    60     {
       
    61     __VTPRINTENTER( "ToolbarCtx.ValidateL" )
       
    62     ValidateToolbarItemsL( aAction );
       
    63     __VTPRINTEXIT( "ToolbarCtx.ValidateL" )
       
    64     }
       
    65 
       
    66 // ---------------------------------------------------------------------------
       
    67 // CVtUiToolbarContext::CVtUiToolbarContext
       
    68 // ---------------------------------------------------------------------------
       
    69 //
       
    70 CVtUiToolbarContext::CVtUiToolbarContext(
       
    71     MVtUiCommandManager& aCommandManager )
       
    72     : CVtUiCmdContext( aCommandManager, EVtUiCmdContextTypeToolbar,
       
    73       KVtUiToolbarContextPriority )
       
    74     {
       
    75     __VTPRINTENTER( "ToolbarCtx.ctor" )
       
    76     __VTPRINTEXIT( "ToolbarCtx.ctor" )
       
    77     }
       
    78 
       
    79 // ---------------------------------------------------------------------------
       
    80 // CVtUiToolbarContext::ConstructL
       
    81 // ---------------------------------------------------------------------------
       
    82 //
       
    83 void CVtUiToolbarContext::ConstructL()
       
    84     {
       
    85     __VTPRINTENTER( "ToolbarCtx.ConstructL" )
       
    86     RegisterCommandContextL();
       
    87     __VTPRINTEXIT( "ToolbarCtx.ConstructL" )
       
    88     }
       
    89     
       
    90 //  End of File
       
    91