multimediacommsengine/tsrc/MCETestUI/MCETestUIEngine/src/TMCETestUIEngineCmdUpdateEvent.cpp
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 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:    Implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDES
       
    22 
       
    23 #include "TMCETestUIEngineCmdUpdateEvent.h"
       
    24 #include "cmcetestuiengineoutevent.h"
       
    25 #include <MCEOutEvent.h>
       
    26 
       
    27 
       
    28 
       
    29 // -----------------------------------------------------------------------------
       
    30 // TMCETestUIEngineCmdUpdateEvent::TMCETestUIEngineCmdUpdateEvent
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 TMCETestUIEngineCmdUpdateEvent::TMCETestUIEngineCmdUpdateEvent(
       
    34             CMCETestUIEngine& aEngine,
       
    35 		    CMCETestUIEngineOutEvent& aOutEvent )
       
    36     : TMCETestUIEngineCmdBase( aEngine ),
       
    37     iOutEvent( aOutEvent )
       
    38     {
       
    39     }
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // TMCETestUIEngineCmdUpdateEvent::ExecuteL
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45 EXPORT_C void TMCETestUIEngineCmdUpdateEvent::ExecuteL()
       
    46 	{
       
    47 	iOutEvent.OutEvent().UpdateL(300);
       
    48 	iEngine.EngineStateChangedL();
       
    49 	}
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 // TMCETestUIEngineCmdUpdateEvent::Caption
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 EXPORT_C const TDesC& TMCETestUIEngineCmdUpdateEvent::Caption() const
       
    56 	{
       
    57 	return KCommandCaptionUpdateEvent;
       
    58 	}
       
    59 
       
    60 
       
    61 
       
    62 
       
    63 // End of File