multimediacommsengine/tsrc/MCETestUI/MCETestUIEngine/src/TMCETestUIEngineCmdDisableStream.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 #include "TMCETestUIEngineCmdDisableStream.h"
       
    21 #include "CMCETestUIEngineAudioStream.h"
       
    22 #include "MCEAudioStream.h"
       
    23 #include "CMCETestUIEngineVideoStream.h"
       
    24 #include "MCEVideoStream.h"
       
    25 // -----------------------------------------------------------------------------
       
    26 // TMCETestUIEngineCmdDisableStream::TMCETestUIEngineCmdDisableStream
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 TMCETestUIEngineCmdDisableStream::TMCETestUIEngineCmdDisableStream(
       
    30             CMCETestUIEngine& aEngine,
       
    31 		    CMCETestUIEngineAudioStream& aAudioStream )
       
    32     : TMCETestUIEngineCmdBase( aEngine ),
       
    33       iAudioStream( aAudioStream )
       
    34     {
       
    35     }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // TMCETestUIEngineCmdDisableStream::ExecuteL
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 EXPORT_C void TMCETestUIEngineCmdDisableStream::ExecuteL()
       
    42 	{
       
    43 	iAudioStream.AudioStream().DisableL();
       
    44 	iEngine.EngineStateChangedL();
       
    45 	}
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // TMCETestUIEngineCmdDisableStream::Caption
       
    49 // -----------------------------------------------------------------------------
       
    50 //
       
    51 EXPORT_C const TDesC& TMCETestUIEngineCmdDisableStream::Caption() const
       
    52 	{
       
    53 	return KCommandCaptionDisableStream;
       
    54 	}
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // TMCETestUIEngineCmdDisableVideoStream::TMCETestUIEngineCmdDisableVideoStream
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 TMCETestUIEngineCmdDisableVideoStream::TMCETestUIEngineCmdDisableVideoStream(
       
    61             CMCETestUIEngine& aEngine,
       
    62 		    CMCETestUIEngineVideoStream& aVideoStream )
       
    63     : TMCETestUIEngineCmdBase( aEngine ),
       
    64       iVideoStream( aVideoStream )
       
    65     {
       
    66     }
       
    67 
       
    68 // -----------------------------------------------------------------------------
       
    69 // TMCETestUIEngineCmdDisableVideoStream::ExecuteL
       
    70 // -----------------------------------------------------------------------------
       
    71 //
       
    72 EXPORT_C void TMCETestUIEngineCmdDisableVideoStream::ExecuteL()
       
    73 	{
       
    74 	iVideoStream.VideoStream().DisableL();
       
    75 	iEngine.EngineStateChangedL();
       
    76 	}
       
    77 
       
    78 // -----------------------------------------------------------------------------
       
    79 // TMCETestUIEngineCmdDisableVideoStream::Caption
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 EXPORT_C const TDesC& TMCETestUIEngineCmdDisableVideoStream::Caption() const
       
    83 	{
       
    84 	return KCommandCaptionDisableStream;
       
    85 	}
       
    86 
       
    87 
       
    88 // End of File