|
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: See class definition below. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __TCmdGetStreamInfo_H__ |
|
21 #define __TCmdGetStreamInfo_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include "TTcMceCommandBase.h" |
|
25 |
|
26 class CMceAudioStream; |
|
27 class CMceVideoStream; |
|
28 |
|
29 // CLASS DEFINITION |
|
30 /** |
|
31 * Command class responsible for GetStreamInfo functionality. |
|
32 */ |
|
33 class TCmdGetStreamInfo |
|
34 : public TTcMceCommandBase |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Constructor. |
|
40 * |
|
41 * @param aContext MCE Test case context |
|
42 */ |
|
43 TCmdGetStreamInfo( MTcTestContext& aContext ) |
|
44 : TTcMceCommandBase( aContext ) {}; |
|
45 |
|
46 public: // From TTcMceCommandBase |
|
47 |
|
48 void ExecuteL(); |
|
49 |
|
50 public: // New methods |
|
51 |
|
52 /** |
|
53 * Static function for matching the name of this command to |
|
54 * a function identifier. |
|
55 * |
|
56 * @param aId An initialized identifier containing a function name. |
|
57 * @return ETrue if this command matches the specified name. |
|
58 */ |
|
59 static TBool Match( const TTcIdentifier& aId ); |
|
60 |
|
61 /** |
|
62 * Static fuction for creating an instance of this class |
|
63 * |
|
64 * @param aContext MCE Test case context |
|
65 * @return An initialized instance of this class. |
|
66 */ |
|
67 static TTcCommandBase* CreateL( MTcTestContext& aContext ); |
|
68 |
|
69 private: // Helper methods |
|
70 |
|
71 void AddSourceToResponseL( const TDesC8& aParamNameForSourceId, |
|
72 const TDesC8& aParamNameForSource, |
|
73 CMceMediaStream& aStream ); |
|
74 |
|
75 void AddSinksToResponseL( const TDesC8& aParamNameForSinkIds, |
|
76 const TDesC8& aParamNameForSinks, |
|
77 CMceMediaStream& aStream ); |
|
78 |
|
79 void AddAudioCodecsToResponseL( const TDesC8& aName, |
|
80 CMceAudioStream& aStream ); |
|
81 |
|
82 void AddVideoCodecsToResponseL( const TDesC8& aName, |
|
83 CMceVideoStream& aStream ); |
|
84 |
|
85 void GetAudioStreamInfo( CMceAudioStream* aAudioStream ); |
|
86 |
|
87 void GetVideoStreamInfo( CMceVideoStream* aVideoStream ); |
|
88 |
|
89 }; |
|
90 |
|
91 #endif // __TCmdGetStreamInfo_H__ |