|
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 "TMCETestUIEngineCmdRemoveStream.h" |
|
21 #include <mcemediastream.h> |
|
22 #include <mcesession.h> |
|
23 |
|
24 // ----------------------------------------------------------------------------- |
|
25 // TMCETestUIEngineCmdRemoveStream::TMCETestUIEngineCmdRemoveStream |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 TMCETestUIEngineCmdRemoveStream::TMCETestUIEngineCmdRemoveStream( |
|
29 CMCETestUIEngine& aEngine, |
|
30 CMceMediaStream& aStream ) |
|
31 : TMCETestUIEngineCmdBase( aEngine ), |
|
32 iStream( aStream ) |
|
33 { |
|
34 } |
|
35 |
|
36 // ----------------------------------------------------------------------------- |
|
37 // TMCETestUIEngineCmdRemoveStream::ExecuteL |
|
38 // ----------------------------------------------------------------------------- |
|
39 // |
|
40 EXPORT_C void TMCETestUIEngineCmdRemoveStream::ExecuteL() |
|
41 { |
|
42 __ASSERT_ALWAYS( iStream.Session(), User::Leave( KErrNotReady ) ); |
|
43 |
|
44 iStream.Session()->RemoveStreamL( iStream ); |
|
45 iEngine.EngineStateChangedL(); |
|
46 } |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // TMCETestUIEngineCmdRemoveStream::Caption |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 EXPORT_C const TDesC& TMCETestUIEngineCmdRemoveStream::Caption() const |
|
53 { |
|
54 return KCommandCaptionRemoveStream; |
|
55 } |
|
56 |
|
57 |
|
58 // End of File |