|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __CMCETESTUIENGINEINSESSION_H__ |
|
22 #define __CMCETESTUIENGINEINSESSION_H__ |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include "TMCETestUIEngineCmdBase.h" |
|
27 #include "CMCETestUIEngineSession.h" |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 |
|
31 class CMceInSession; |
|
32 |
|
33 |
|
34 // CLASS DECLARATION |
|
35 /** |
|
36 * |
|
37 * CMCETestUIEngineInSession provides a wrapper for CMCEInSession. |
|
38 * Class is not the traditional wrapper in a sense that it would |
|
39 * conform to interface provided by CMCEInSession. Instead class |
|
40 * implements interface MMCETestUIEngineCmdProvider to provide |
|
41 * same kind of functionality in controlled way on different levels |
|
42 * of abstraction. |
|
43 * |
|
44 */ |
|
45 class CMCETestUIEngineInSession : public CMCETestUIEngineSession |
|
46 { |
|
47 |
|
48 public: // Constructors and destructors |
|
49 |
|
50 |
|
51 /** |
|
52 * Two-phased constructor. Not imported. |
|
53 */ |
|
54 static CMCETestUIEngineInSession* NewL( |
|
55 CMCETestUIEngine& aEngine, |
|
56 CMceInSession* aInSession ); |
|
57 |
|
58 /** |
|
59 * Destructor. |
|
60 */ |
|
61 IMPORT_C ~CMCETestUIEngineInSession(); |
|
62 |
|
63 public: // From MMCETestUICommandProvider |
|
64 |
|
65 /** |
|
66 * Gets the commands applicaple to this insession object. |
|
67 * |
|
68 * @return reference to array of commands |
|
69 */ |
|
70 IMPORT_C const RPointerArray<TMCETestUIEngineCmdBase>& |
|
71 GetCommandsL(); |
|
72 |
|
73 public: // From base class |
|
74 |
|
75 /** |
|
76 * @return Id of this particular insession object |
|
77 */ |
|
78 IMPORT_C TInt Id() const; |
|
79 |
|
80 public: // New functions, internal |
|
81 |
|
82 /** |
|
83 * Gets wrapped MCEInSession object |
|
84 * |
|
85 * @return wrapped MCEInSession |
|
86 */ |
|
87 CMceInSession& InSession(); |
|
88 |
|
89 void AddSdpToStreamsL( CMceInSession* aSession ); |
|
90 |
|
91 void AdjustRectSize(CMceInSession* aSession); |
|
92 void SetAudioRouting(CMceInSession* aSession); |
|
93 |
|
94 void UpdateVideoParametersL( CMceInSession* aSession ); |
|
95 |
|
96 private: // private constructors |
|
97 |
|
98 /** |
|
99 * C++ default constructor. Not implemented. |
|
100 */ |
|
101 CMCETestUIEngineInSession(); |
|
102 |
|
103 /** |
|
104 * C++ first phase constructor. |
|
105 */ |
|
106 CMCETestUIEngineInSession( |
|
107 CMCETestUIEngine& aEngine, |
|
108 CMceInSession* aInSession ); |
|
109 |
|
110 /** |
|
111 * Symbian second-phase constructor |
|
112 */ |
|
113 void ConstructL(); |
|
114 |
|
115 |
|
116 private: // owned data |
|
117 |
|
118 // Wrapped CMCEInSession object |
|
119 CMceInSession* iInSession; |
|
120 |
|
121 // Id of this insession object |
|
122 TInt iId; |
|
123 |
|
124 }; |
|
125 |
|
126 #endif // __CMCETESTUIENGINEINSESSION_H__ |