|
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 |
|
22 #ifndef CMCETLS_H |
|
23 #define CMCETLS_H |
|
24 |
|
25 #include <e32base.h> |
|
26 #include <bamdesca.h> |
|
27 #include <stringpool.h> |
|
28 #include "mceserial.h" |
|
29 #include "mcesip.h" |
|
30 |
|
31 class TMceIds; |
|
32 class CSIPMessageElements; |
|
33 class CSIPResponseElements; |
|
34 class RStringF; |
|
35 class CSdpDocument; |
|
36 class CMceComSession; |
|
37 |
|
38 class CMCETls : public CBase |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 enum TMMActionType |
|
44 { |
|
45 ENone = -1, |
|
46 EEncode, |
|
47 EDecode, |
|
48 EUpdate, |
|
49 EReserve, |
|
50 ECreateRejectedAnswer, |
|
51 EPauseSink, |
|
52 EPauseSource, |
|
53 EResumeSink, |
|
54 EResumeSource, |
|
55 ECloseSession, |
|
56 ESendSR, |
|
57 ESendRR, |
|
58 EStartInactivityTimer, |
|
59 EStopInactivityTimer, |
|
60 EGetVolume, |
|
61 EGetMaxVolume, |
|
62 ESetVolume, |
|
63 ESetBalance, |
|
64 EGetGain, |
|
65 EGetMaxGain, |
|
66 ESetGain, |
|
67 ESendRTCPAnyData, |
|
68 ESetAudioRouting, |
|
69 EGetAudioRouting, |
|
70 EGetZoomFactor, |
|
71 EGetDigitalZoomFactor, |
|
72 EGetContrast, |
|
73 EGetBrightness, |
|
74 EGetExposure, |
|
75 EGetWhiteBalance, |
|
76 ESetCameraIndex, |
|
77 ESetZoomFactor, |
|
78 ESetDigitalZoomFactor, |
|
79 ESetContrast, |
|
80 ESetBrightness, |
|
81 ESetExposure, |
|
82 ESetWhiteBalance, |
|
83 EEnableViewFinder, |
|
84 EDisableViewFinder, |
|
85 EGetDisplayRect, |
|
86 ESetDisplayRect, |
|
87 EGetDisplayPriority, |
|
88 ESetDisplayPriority, |
|
89 ESetDisplayIndex, |
|
90 EGetDisplayRotation, |
|
91 ESetDisplayRotation, |
|
92 EDtmf |
|
93 }; |
|
94 |
|
95 public: |
|
96 |
|
97 static void OpenL(); |
|
98 static void Close(); |
|
99 static CMCETls* Storage(); |
|
100 |
|
101 ~CMCETls(); |
|
102 |
|
103 |
|
104 void Store( TMceIds aManagerIds ); |
|
105 |
|
106 void StoreL( TMceIds aIds, |
|
107 CMceMsgBase& aContext, |
|
108 HBufC8* aContent = NULL ); |
|
109 |
|
110 void StoreL( TMceIds aIds, |
|
111 const TDesC8& aContext ); |
|
112 |
|
113 void SIPSends( RStringF aMethod, CSIPMessageElements* aMessage ); |
|
114 void SIPSends( RStringF aMethod, CSIPResponseElements* aResponse ); |
|
115 void MediaManagerAction( TMMActionType aType, const TAny* aObject = 0 ); |
|
116 void MediaManagerSdpAction( TMMActionType aType, TAny* aObject = 0 ); |
|
117 |
|
118 void SetCallback( TCallBack aMethod ); |
|
119 void ExecuteCallback(); |
|
120 void SetLeave( TInt aError, TUint32 aParam = KErrNone ); |
|
121 TInt LeaveError( TUint32 aParam = KErrNone ); |
|
122 |
|
123 private: |
|
124 |
|
125 CMCETls(); |
|
126 |
|
127 public://data |
|
128 |
|
129 TMceIds iIds; |
|
130 TMceIds iManagerIds; |
|
131 TMceItcFunctions iItcFunction; |
|
132 |
|
133 HBufC8* iContextClient; |
|
134 HBufC8* iContentClient; |
|
135 HBufC8* iContextServer; |
|
136 HBufC8* iContentServer; |
|
137 TUint32 iValue; |
|
138 TMMActionType iMediaManagerAction; |
|
139 TMMActionType iMediaManagerSdpAction; |
|
140 TInt iCompletionCode; |
|
141 |
|
142 CSIPMessageElements* iSipSentMessage; |
|
143 CSIPResponseElements* iSipSentResponse; |
|
144 RStringF iSipSentMethod; |
|
145 RStringF iSipResponseToMethod; |
|
146 |
|
147 mutable const TAny* iMMObject; |
|
148 |
|
149 TBool iAckSent; |
|
150 |
|
151 TCallBack iCallBack; |
|
152 |
|
153 TMceMessageBufSizes iMessageSizes; |
|
154 |
|
155 TInt iIdsIndex; |
|
156 |
|
157 TMceReturnStatus iMediaManagerUpdateStatus; |
|
158 |
|
159 TMceSipWarningCode iMediaManagerDecodeStatus; |
|
160 |
|
161 TMceReturnStatus iMediaManagerReserveStatus; |
|
162 |
|
163 TBool iMediaManagerNeedToNegotiate; |
|
164 |
|
165 TMceNegotiationRole iRole; |
|
166 |
|
167 private: |
|
168 |
|
169 // These are handled with SetLeave and LeaveError methods |
|
170 TInt iLeaveError; |
|
171 |
|
172 TUint32 iLeaveParam; |
|
173 }; |
|
174 |
|
175 |
|
176 |
|
177 #endif |
|
178 |
|
179 // End of File |