multimediacommsengine/tsrc/MCETestUI/MCETestUIEngine/src/TMCETestUIEngineCmdRejectEvent.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 "TMCETestUIEngineCmdRejectEvent.h"
       
    24 #include "CMCETestUIEngineInEvent.h"
       
    25 #include "CMCETestUIQuestionSingleSelection.h"
       
    26 #include <MCEInEvent.h>
       
    27 #include <mceinrefer.h>
       
    28 
       
    29 // -----------------------------------------------------------------------------
       
    30 // TMCETestUIEngineCmdRejectEvent::TMCETestUIEngineCmdRejectEvent
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 TMCETestUIEngineCmdRejectEvent::TMCETestUIEngineCmdRejectEvent( 
       
    34 		            CMCETestUIEngine& aEngine,
       
    35 		            CMCETestUIEngineInEvent& aInEvent )
       
    36     : TMCETestUIEngineCmdBase( aEngine ),
       
    37       iInEvent( aInEvent )		            
       
    38     {
       
    39     }
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // TMCETestUIEngineCmdRejectEvent::ExecuteL
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45 EXPORT_C void TMCETestUIEngineCmdRejectEvent::ExecuteL()
       
    46 	{
       
    47 	iInEvent.InEvent().RejectL();
       
    48 	iEngine.EngineStateChangedL();
       
    49 	}
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 // TMCETestUIEngineCmdRejectEvent::Caption
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 EXPORT_C const TDesC& TMCETestUIEngineCmdRejectEvent::Caption() const
       
    56 	{
       
    57 	return KCommandCaptionRejectEvent;
       
    58 	}
       
    59 
       
    60 
       
    61 //-----------------------------------------------------------------------------
       
    62 // TMCETestUIEngineCmdRejectRefer::TMCETestUIEngineCmdRejectRefer
       
    63 // -----------------------------------------------------------------------------
       
    64 //
       
    65 TMCETestUIEngineCmdRejectRefer::TMCETestUIEngineCmdRejectRefer( 
       
    66 		            CMCETestUIEngine& aEngine,
       
    67 		            CMCETestUIEngineInRefer& aInRefer )
       
    68     : TMCETestUIEngineCmdBase( aEngine ),
       
    69       iInRefer( aInRefer )		            
       
    70     {
       
    71     }
       
    72 
       
    73 // -----------------------------------------------------------------------------
       
    74 // TMCETestUIEngineCmdRejectRefer::ExecuteL
       
    75 // -----------------------------------------------------------------------------
       
    76 //
       
    77 EXPORT_C void TMCETestUIEngineCmdRejectRefer::ExecuteL()
       
    78 	{
       
    79 	iInRefer.InRefer().RejectL();
       
    80 	iEngine.EngineStateChangedL();
       
    81 	}
       
    82 
       
    83 // -----------------------------------------------------------------------------
       
    84 // TMCETestUIEngineCmdRejectRefer::Caption
       
    85 // -----------------------------------------------------------------------------
       
    86 //
       
    87 EXPORT_C const TDesC& TMCETestUIEngineCmdRejectRefer::Caption() const
       
    88 	{
       
    89 	return KCommandCaptionRejectRefer;
       
    90 	}
       
    91 
       
    92 // End of File