|
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 __TCmdUpdateSession_H__ |
|
21 #define __TCmdUpdateSession_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include "TTcMceCommandBase.h" |
|
25 #include "CSessionHelper.h" |
|
26 |
|
27 //Forward declarations |
|
28 class CMceCodec; |
|
29 class CMceVideoStream; |
|
30 class CMceSession; |
|
31 // CLASS DEFINITION |
|
32 /** |
|
33 * Command class responsible for "UpdateSession" functionality. |
|
34 */ |
|
35 class TCmdUpdateSession |
|
36 : public TTcMceCommandBase |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Constructor. |
|
42 * |
|
43 * @param aContext MCE Test case context |
|
44 */ |
|
45 TCmdUpdateSession( MTcTestContext& aContext ) : |
|
46 TTcMceCommandBase( aContext ), iSessionHelper() {} |
|
47 |
|
48 public: // From TTcMceCommandBase |
|
49 |
|
50 void ExecuteL(); |
|
51 |
|
52 public: // New methods |
|
53 |
|
54 /** |
|
55 * Static function for matching the name of this command to |
|
56 * a function identifier. |
|
57 * |
|
58 * @param aId An initialized identifier containing a function name. |
|
59 * @return ETrue if this command matches the specified name. |
|
60 */ |
|
61 static TBool Match( const TTcIdentifier& aId ); |
|
62 |
|
63 /** |
|
64 * Static fuction for creating an instance of this class |
|
65 * |
|
66 * @param aContext MCE Test case context |
|
67 * @return An initialized instance of this class. |
|
68 */ |
|
69 static TTcCommandBase* CreateL( MTcTestContext& aContext ); |
|
70 |
|
71 protected: |
|
72 |
|
73 void DoVideoCodecSelectionL( CMceVideoStream& aVideoStream, TPtrC8* aCodec ); |
|
74 |
|
75 void SetMediaFileSinkL( CMceSession& aSession, TPtrC8* aFile ); |
|
76 |
|
77 private: |
|
78 CSessionHelper iSessionHelper; |
|
79 }; |
|
80 |
|
81 #endif // __TCmdUpdateSession_H__ |