photosgallery/viewframework/commandhandlers/commandhandlerbase/src/glxcommandhandler.cpp
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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:    Command Handler base
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #include "glxcommandhandler.h"
       
    23 
       
    24 EXPORT_C CGlxCommandHandler::CGlxCommandHandler( TBool aHasToolbarItem )
       
    25 {
       
    26 	iHasToolbarItem = aHasToolbarItem;
       
    27 }
       
    28 
       
    29 EXPORT_C void CGlxCommandHandler::ActivateL( TInt aViewId )
       
    30 {
       
    31 	DoActivateL(aViewId);
       
    32 	
       
    33 	if( iHasToolbarItem )
       
    34 		{	
       
    35 		PopulateToolbarL();
       
    36 		}	
       
    37 }
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // DoActivateL
       
    41 // -----------------------------------------------------------------------------
       
    42 //	
       
    43 EXPORT_C void CGlxCommandHandler::DoActivateL(TInt /*aViewId*/)
       
    44 {
       
    45 		/* Requiring derived classes should Implement */
       
    46 }
       
    47 	
       
    48 // -----------------------------------------------------------------------------
       
    49 // PopulateToolbar
       
    50 // -----------------------------------------------------------------------------
       
    51 //	
       
    52 EXPORT_C void CGlxCommandHandler::PopulateToolbarL()
       
    53 {
       
    54 		// Implement code to set toolbar items in the required derived classes.
       
    55 }
       
    56 
       
    57 // -----------------------------------------------------------------------------
       
    58 // Destructor
       
    59 // -----------------------------------------------------------------------------
       
    60 //	
       
    61 EXPORT_C CGlxCommandHandler::~CGlxCommandHandler()
       
    62 	{
       
    63 	
       
    64 	}