author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Mon, 04 Oct 2010 00:16:48 +0300 | |
changeset 77 | 2be0b271d017 |
parent 37 | ba76fc04e6c2 |
child 76 | cfea66083b62 |
permissions | -rw-r--r-- |
37 | 1 |
/* |
2 |
* Copyright (c) 2008 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 of CPhoneMediatorSender class. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
// INCLUDE FILES |
|
20 |
#include <MediatorDomainUIDs.h> |
|
21 |
#include <videotelcontrolmediatorapi.h> |
|
22 |
#include "phoneui.hrh" |
|
23 |
#include "cphonemediatorsender.h" |
|
24 |
#include "phonelogger.h" |
|
25 |
#include "phoneconstants.h" |
|
26 |
#include "phonemediatorpackagetypes.h" |
|
27 |
#include "phoneui.pan" |
|
28 |
#include "tphonecmdparamcallheaderdata.h" |
|
29 |
#include "tphonecmdparamboolean.h" |
|
30 |
#include "mphoneenginemessagesender.h" |
|
31 |
#include "pevirtualengine.h" |
|
32 |
#include "mphoneshutdowncommand.h" |
|
33 |
||
34 |
// ================= MEMBER FUNCTIONS ======================= |
|
35 |
||
36 |
// --------------------------------------------------------- |
|
37 |
// CPhoneMediatorSender::Instance |
|
38 |
// Initializes the singleton object |
|
39 |
// (other items were commented in a header). |
|
40 |
// --------------------------------------------------------- |
|
41 |
// |
|
42 |
EXPORT_C CPhoneMediatorSender* CPhoneMediatorSender::Instance() |
|
43 |
{ |
|
44 |
CPhoneMediatorSender* instance = static_cast<CPhoneMediatorSender*> |
|
45 |
( CCoeEnv::Static ( KUidMediatorSenderSingleton ) ); |
|
46 |
||
47 |
if ( !instance ) |
|
48 |
{ |
|
49 |
TRAPD( err, instance = CPhoneMediatorSender::NewL() ); |
|
50 |
if ( err ) |
|
51 |
{ |
|
52 |
Panic( EPhoneMediatorCenterCouldNotCreateSingleton ); |
|
53 |
} |
|
54 |
} |
|
55 |
return instance; |
|
56 |
} |
|
57 |
||
58 |
// ----------------------------------------------------------------------------- |
|
59 |
// CPhoneMediatorSender::CPhoneMediatorSender |
|
60 |
// C++ default constructor can NOT contain any code, that |
|
61 |
// might leave. |
|
62 |
// ----------------------------------------------------------------------------- |
|
63 |
// |
|
64 |
CPhoneMediatorSender::CPhoneMediatorSender() : |
|
65 |
CCoeStatic( KUidMediatorSenderSingleton ) |
|
66 |
{ |
|
67 |
} |
|
68 |
||
69 |
// Destructor |
|
70 |
CPhoneMediatorSender::~CPhoneMediatorSender() |
|
71 |
{ |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
72 |
iEventSender->UnregisterEvent( KMediatorTelephonyDomain, |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
73 |
KCatEventsFromTelephony, |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
74 |
iGenericEvents ); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
75 |
|
37 | 76 |
delete iCommandInitiator; |
77 |
iEvents.Close(); |
|
78 |
iGenericEvents.Close(); |
|
79 |
delete iEventSender; |
|
80 |
} |
|
81 |
||
82 |
// ----------------------------------------------------------------------------- |
|
83 |
// CPhoneMediatorSender::ConstructL |
|
84 |
// Symbian 2nd phase constructor can leave. |
|
85 |
// ----------------------------------------------------------------------------- |
|
86 |
// |
|
87 |
void CPhoneMediatorSender::ConstructL() |
|
88 |
{ |
|
89 |
__LOGMETHODSTARTEND( EPhoneMediatorCenter, "CPhoneMediatorSender::ConstructL( ) "); |
|
90 |
iCommandInitiator = CMediatorCommandInitiator::NewL( this ); |
|
91 |
iEventSender = CMediatorEventProvider::NewL(); |
|
92 |
ResetCommandBuffer(); |
|
93 |
||
94 |
RegisterGenericEvents(); |
|
95 |
} |
|
96 |
||
97 |
// ----------------------------------------------------------- |
|
98 |
// CPhoneMediatorSender::NewL() |
|
99 |
// Constructor |
|
100 |
// (other items were commented in a header). |
|
101 |
// ----------------------------------------------------------- |
|
102 |
// |
|
103 |
CPhoneMediatorSender* CPhoneMediatorSender::NewL() |
|
104 |
{ |
|
105 |
__LOGMETHODSTARTEND( EPhoneMediatorCenter, "CPhoneMediatorSender::NewL( ) "); |
|
106 |
||
107 |
CPhoneMediatorSender* self = new ( ELeave ) CPhoneMediatorSender; |
|
108 |
CleanupStack::PushL( self ); |
|
109 |
self->ConstructL(); |
|
110 |
CleanupStack::Pop( self ); |
|
111 |
||
112 |
return self; |
|
113 |
} |
|
114 |
||
115 |
// ----------------------------------------------------------------------------- |
|
116 |
// CPhoneMediatorSender::RegisterGenericEvents |
|
117 |
// ----------------------------------------------------------------------------- |
|
118 |
// |
|
119 |
void CPhoneMediatorSender::RegisterGenericEvents() |
|
120 |
{ |
|
121 |
__LOGMETHODSTARTEND( EPhoneMediatorCenter, "CPhoneMediatorSender::RegisterGenericEvents( ) "); |
|
122 |
TCapabilitySet caps; |
|
123 |
caps.SetEmpty(); |
|
124 |
||
125 |
MediatorService::TEvent newEvent; |
|
126 |
newEvent.iEventId = EPhoneEventCallData; |
|
127 |
newEvent.iVersion = TVersion( KTelephonyEventsVersionMajor, |
|
128 |
KTelephonyEventsVersionMinor, |
|
129 |
KTelephonyEventsVersionBuild ); |
|
130 |
newEvent.iCaps = caps; |
|
131 |
||
132 |
TRAPD( errorCode, iGenericEvents.AppendL( newEvent )); |
|
133 |
if( errorCode == ECCPErrorNone ) |
|
134 |
{ |
|
135 |
TInt res = iEventSender->RegisterEvent( KMediatorTelephonyDomain, |
|
136 |
KCatEventsFromTelephony, |
|
137 |
iGenericEvents ); |
|
138 |
__ASSERT_DEBUG( !res, Panic( EPhoneMediatorCenterRegistrationFailed ) ); |
|
139 |
} |
|
140 |
} |
|
141 |
||
142 |
// ----------------------------------------------------------------------------- |
|
143 |
// CPhoneMediatorSender::SendEvent |
|
144 |
// ----------------------------------------------------------------------------- |
|
145 |
// |
|
146 |
EXPORT_C void CPhoneMediatorSender::SendEvent( |
|
147 |
const TPhoneViewCommandId /*aCommandId*/ ) const |
|
148 |
{ |
|
149 |
// No one yet intereseted this event. |
|
150 |
} |
|
151 |
||
152 |
// ----------------------------------------------------------------------------- |
|
153 |
// CPhoneMediatorSender::SendEvent |
|
154 |
// ----------------------------------------------------------------------------- |
|
155 |
// |
|
156 |
EXPORT_C void CPhoneMediatorSender::SendEvent( const TPhoneViewCommandId aCommandId, |
|
157 |
const TInt aCallId ) const |
|
158 |
{ |
|
159 |
switch( aCommandId ) |
|
160 |
{ |
|
161 |
case EPhoneViewRemoveCallHeader: |
|
162 |
{ |
|
163 |
__PHONELOG1( EBasic, EPhoneMediatorCenter, |
|
164 |
"CPhoneMediatorSender::SendEvent - EPhoneEventCallData iCallId:%d" ,aCallId ); |
|
165 |
TTelephonyCallDataParam callDataParam; |
|
166 |
callDataParam.iCallId = aCallId; |
|
167 |
callDataParam.iCallState = ECallStateIdle; |
|
168 |
TTelephonyCallDataParamPackage callDataParamPackage( callDataParam ); |
|
169 |
iEventSender->RaiseEvent( KMediatorTelephonyDomain, |
|
170 |
KCatEventsFromTelephony, |
|
171 |
EPhoneEventCallData, |
|
172 |
TVersion( KTelephonyEventsVersionMajor, |
|
173 |
KTelephonyEventsVersionMinor, |
|
174 |
KTelephonyEventsVersionBuild ), |
|
175 |
callDataParamPackage ); |
|
176 |
} |
|
177 |
break; |
|
178 |
||
179 |
default: |
|
180 |
break; |
|
181 |
} |
|
182 |
} |
|
183 |
||
184 |
// ----------------------------------------------------------------------------- |
|
185 |
// CPhoneMediatorSender::SendEvent |
|
186 |
// ----------------------------------------------------------------------------- |
|
187 |
// |
|
188 |
EXPORT_C void CPhoneMediatorSender::SendEvent( const TPhoneViewCommandId aCommandId, |
|
189 |
TPhoneCommandParam& aCommandParam ) |
|
190 |
{ |
|
191 |
switch( aCommandId ) |
|
192 |
{ |
|
193 |
case EPhoneViewActivateMuteUIChanges: |
|
194 |
{ |
|
195 |
TPhoneCmdParamBoolean& booleanParam = static_cast<TPhoneCmdParamBoolean&>( aCommandParam ); |
|
196 |
const TBool audioMute( booleanParam.Boolean() ); |
|
197 |
TInt response = KErrNone; |
|
198 |
||
199 |
TInt command = -1; |
|
200 |
if( audioMute ) |
|
201 |
{ |
|
202 |
__PHONELOG( EBasic, EPhoneMediatorCenter, |
|
203 |
"CPhoneMediatorSender::SendEvent - transformed to Mediator Command EVtCmdMute" ); |
|
204 |
command = EVtCmdMute; |
|
205 |
response = IssueCommand( KMediatorVideoTelephonyDomain, |
|
206 |
KCatPhoneToVideotelCommands, |
|
207 |
command, |
|
208 |
TVersion( KPhoneToVideotelCmdVersionMajor, |
|
209 |
KPhoneToVideotelCmdVersionMinor, |
|
210 |
KPhoneToVideotelCmdVersionBuild ), |
|
211 |
KNullDesC8 ); |
|
212 |
} |
|
213 |
else |
|
214 |
{ |
|
215 |
__PHONELOG( EBasic, EPhoneMediatorCenter, |
|
216 |
"CPhoneMediatorSender::SendEvent - transformed to Mediator Command EVtCmdUnmute" ); |
|
217 |
command = EVtCmdUnmute; |
|
218 |
response = IssueCommand( KMediatorVideoTelephonyDomain, |
|
219 |
KCatPhoneToVideotelCommands, |
|
220 |
command, |
|
221 |
TVersion( KPhoneToVideotelCmdVersionMajor, |
|
222 |
KPhoneToVideotelCmdVersionMinor, |
|
223 |
KPhoneToVideotelCmdVersionBuild ), |
|
224 |
KNullDesC8 ); |
|
225 |
} |
|
226 |
||
227 |
if( ( response == KErrInUse ) && ( iCommandBuffer.iCommandId == KErrNotFound ) ) |
|
228 |
{ |
|
229 |
// Previous command wasn't handled yet so buffer the last unhandled command. |
|
230 |
// This command will be sent after we get response to the previous command |
|
231 |
iCommandBuffer.iCommandId = command; |
|
232 |
iCommandBuffer.iDomainUid = KMediatorVideoTelephonyDomain; |
|
233 |
iCommandBuffer.iCategoryUid = KCatPhoneToVideotelCommands; |
|
234 |
iCommandBuffer.iVersion = TVersion( KPhoneToVideotelCmdVersionMajor, |
|
235 |
KPhoneToVideotelCmdVersionMinor, |
|
236 |
KPhoneToVideotelCmdVersionBuild ); |
|
237 |
} |
|
238 |
} |
|
239 |
break; |
|
240 |
||
241 |
default: |
|
242 |
break; |
|
243 |
} |
|
244 |
} |
|
245 |
||
246 |
// ----------------------------------------------------------------------------- |
|
247 |
// CPhoneMediatorSender::SendEvent |
|
248 |
// ----------------------------------------------------------------------------- |
|
249 |
// |
|
250 |
EXPORT_C void CPhoneMediatorSender::SendEvent( const TPhoneViewCommandId aCommandId, |
|
251 |
const TInt aCallId, TPhoneCommandParam& aCommandParam ) const |
|
252 |
{ |
|
253 |
switch( aCommandId ) |
|
254 |
{ |
|
255 |
case EPhoneViewCreateCallHeader: |
|
256 |
{ |
|
257 |
TPhoneCmdParamCallHeaderData& callHeaderParam = static_cast<TPhoneCmdParamCallHeaderData&>( aCommandParam ); |
|
258 |
__PHONELOG2( EBasic, EPhoneMediatorCenter, |
|
259 |
"CPhoneMediatorSender::SendEvent - EPhoneEventCallData iCallId:%d iCLIText:%S", |
|
260 |
aCallId, &callHeaderParam.CLIText() ); |
|
261 |
TTelephonyCallDataParam callDataParam; |
|
262 |
callDataParam.iCallId = aCallId; |
|
263 |
callDataParam.iCLIText = callHeaderParam.CLIText(); |
|
264 |
callDataParam.iCallState = MapCallState( callHeaderParam.CallState() ); |
|
265 |
callDataParam.iRemotePhoneNumber = callHeaderParam.RemotePhoneNumber(); |
|
266 |
callDataParam.iCallType = MapCallType( callHeaderParam.CallType() ); |
|
267 |
TTelephonyCallDataParamPackage callDataParamPackage( callDataParam ); |
|
268 |
iEventSender->RaiseEvent( KMediatorTelephonyDomain, |
|
269 |
KCatEventsFromTelephony, |
|
270 |
EPhoneEventCallData, |
|
271 |
TVersion( KTelephonyEventsVersionMajor, |
|
272 |
KTelephonyEventsVersionMinor, |
|
273 |
KTelephonyEventsVersionBuild ), |
|
274 |
callDataParamPackage ); |
|
275 |
} |
|
276 |
break; |
|
277 |
||
278 |
default: |
|
279 |
break; |
|
280 |
} |
|
281 |
} |
|
282 |
||
283 |
// ----------------------------------------------------------------------------- |
|
284 |
// CPhoneMediatorSender::SendEvent |
|
285 |
// ----------------------------------------------------------------------------- |
|
286 |
// |
|
287 |
EXPORT_C void CPhoneMediatorSender::SendEvent( |
|
288 |
const TPhoneViewCommandId /*aCommandId*/, |
|
289 |
const TInt /*aCallId*/, const TDesC* /*aMessage*/ ) const |
|
290 |
{ |
|
291 |
// No one interested yet from these events. |
|
292 |
} |
|
293 |
||
294 |
// ----------------------------------------------------------------------------- |
|
295 |
// CPhoneMediatorSender::IssueCommand |
|
296 |
// ----------------------------------------------------------------------------- |
|
297 |
// |
|
298 |
EXPORT_C TInt CPhoneMediatorSender::IssueCommand( const TUid aDomain, const TUid aCategory, |
|
299 |
const TInt aCommandId, const TVersion aVersion, const TDesC8& aData, |
|
300 |
MPhoneShutdownCommand* aShutdownCommand ) |
|
301 |
{ |
|
302 |
__LOGMETHODSTARTEND( EPhoneMediatorCenter, "CPhoneMediatorSender::IssueCommand( ) "); |
|
303 |
__PHONELOG3( EBasic, EPhoneMediatorCenter, |
|
304 |
"aCommandId = %d, aDomain = %d, aCategory = %d", aCommandId, aDomain, aCategory ); |
|
305 |
if( aShutdownCommand ) |
|
306 |
{ |
|
307 |
iShutdownCommand = aShutdownCommand; |
|
308 |
} |
|
309 |
||
310 |
return iCommandInitiator->IssueCommand( |
|
311 |
aDomain, |
|
312 |
aCategory, |
|
313 |
aCommandId, |
|
314 |
aVersion, |
|
315 |
aData ); |
|
316 |
} |
|
317 |
||
318 |
// ----------------------------------------------------------------------------- |
|
319 |
// CPhoneMediatorSender::CommandResponseL |
|
320 |
// ----------------------------------------------------------------------------- |
|
321 |
// |
|
322 |
void CPhoneMediatorSender::CommandResponseL( TUid aDomain, TUid aCategory, |
|
323 |
TInt aCommandId, TInt /*aStatus*/, const TDesC8& /*aData*/ ) |
|
324 |
{ |
|
325 |
// First check for buffered command |
|
326 |
if( iCommandBuffer.iCommandId != KErrNotFound ) |
|
327 |
{ |
|
328 |
// We have a buffered command waiting |
|
329 |
__PHONELOG( EBasic, EPhoneMediatorCenter, |
|
330 |
"CPhoneMediatorSender::VideoTelephonyCommandResponse - Buffered Command waiting" ); |
|
331 |
if( iCommandBuffer.iCommandId != aCommandId ) |
|
332 |
{ |
|
333 |
// And it's not identical to the command which response we now received |
|
334 |
// so it's necessary to re-send it |
|
335 |
__PHONELOG1( EBasic, EPhoneMediatorCenter, |
|
336 |
"CPhoneMediatorSender::VideoTelephonyCommandResponse - Resending command %d", iCommandBuffer.iCommandId ); |
|
337 |
IssueCommand( iCommandBuffer.iDomainUid, |
|
338 |
iCommandBuffer.iCategoryUid, |
|
339 |
iCommandBuffer.iCommandId, |
|
340 |
iCommandBuffer.iVersion, |
|
341 |
KNullDesC8 ); |
|
342 |
||
343 |
ResetCommandBuffer(); |
|
344 |
} |
|
345 |
} |
|
346 |
||
347 |
if( ( aDomain == KMediatorVideoTelephonyDomain ) && |
|
348 |
( aCategory == KCatPhoneToVideotelCommands ) ) |
|
349 |
{ |
|
350 |
VideoTelephonyCommandResponse( aCommandId ); |
|
351 |
} |
|
352 |
} |
|
353 |
||
354 |
// ----------------------------------------------------------------------------- |
|
355 |
// CPhoneMediatorSender::VideoTelephonyCommandResponse |
|
356 |
// ----------------------------------------------------------------------------- |
|
357 |
// |
|
358 |
void CPhoneMediatorSender::VideoTelephonyCommandResponse( TInt aCommandId ) |
|
359 |
{ |
|
360 |
__LOGMETHODSTARTEND( EPhoneMediatorCenter, "CPhoneMediatorSender::VideoTelephonyCommandResponse( ) "); |
|
361 |
__PHONELOG1( EBasic, EPhoneMediatorCenter, |
|
362 |
"VideoTelephonyCommandResponse aCommandId = %d", aCommandId ); |
|
363 |
||
364 |
switch( aCommandId ) |
|
365 |
{ |
|
366 |
case EVtCmdReleaseDataport: |
|
367 |
__ASSERT_DEBUG( iShutdownCommand, Panic( EPhoneMediatorCenterParameterNotInitialized ) ); |
|
368 |
TRAP_IGNORE( iShutdownCommand->ExecuteLD()); |
|
369 |
break; |
|
370 |
||
371 |
default: |
|
372 |
break; |
|
373 |
} |
|
374 |
} |
|
375 |
||
376 |
// ----------------------------------------------------------------------------- |
|
377 |
// CPhoneMediatorSender::MapCallState |
|
378 |
// ----------------------------------------------------------------------------- |
|
379 |
// |
|
380 |
TCallState CPhoneMediatorSender::MapCallState( const TInt aCallState ) const |
|
381 |
{ |
|
382 |
__LOGMETHODSTARTEND( EPhoneMediatorCenter, "CPhoneMediatorSender::MapCallState( ) "); |
|
383 |
TCallState callState( ECallStateUnknown ); |
|
384 |
||
385 |
switch( aCallState ) |
|
386 |
{ |
|
387 |
case EPEStateUnknown: |
|
388 |
callState = ECallStateUnknown; |
|
389 |
break; |
|
390 |
||
391 |
case EPEStateIdle: |
|
392 |
callState = ECallStateIdle; |
|
393 |
break; |
|
394 |
||
395 |
case EPEStateDialing: |
|
396 |
callState = ECallStateDialling; |
|
397 |
break; |
|
398 |
||
399 |
case EPEStateEmergencyDialing: |
|
400 |
callState = ECallStateEmergencyDialling; |
|
401 |
break; |
|
402 |
||
403 |
case EPEStateRinging: |
|
404 |
callState = ECallStateRinging; |
|
405 |
break; |
|
406 |
||
407 |
case EPEStateConnecting: |
|
408 |
callState = ECallStateConnecting; |
|
409 |
break; |
|
410 |
||
411 |
case EPEStateConnected: |
|
412 |
callState = ECallStateConnected; |
|
413 |
break; |
|
414 |
||
415 |
case EPEStateHangingUp: |
|
416 |
callState = ECallStateHangingUp; |
|
417 |
break; |
|
418 |
||
419 |
case EPEStateHeld: |
|
420 |
callState = ECallStateHeld; |
|
421 |
break; |
|
422 |
||
423 |
case EPEStateAnswering: |
|
424 |
callState = ECallStateAnswering; |
|
425 |
break; |
|
426 |
||
427 |
case EPEStateRejecting: |
|
428 |
callState = ECallStateRejecting; |
|
429 |
break; |
|
430 |
||
431 |
case EPEStateDisconnecting: |
|
432 |
callState = ECallStateDisconnecting; |
|
433 |
break; |
|
434 |
||
435 |
default: |
|
436 |
break; |
|
437 |
} |
|
438 |
||
439 |
return callState; |
|
440 |
} |
|
441 |
||
442 |
// ----------------------------------------------------------------------------- |
|
443 |
// CPhoneMediatorSender::MapCallType |
|
444 |
// ----------------------------------------------------------------------------- |
|
445 |
// |
|
446 |
TCallType CPhoneMediatorSender::MapCallType( const TInt aCallType ) const |
|
447 |
{ |
|
448 |
__LOGMETHODSTARTEND( EPhoneMediatorCenter, "CPhoneMediatorSender::MapCallType( ) "); |
|
449 |
TCallType callType( ECallTypeUninitialized ); |
|
450 |
||
451 |
switch( aCallType ) |
|
452 |
{ |
|
453 |
case EPECallTypeUninitialized: |
|
454 |
callType = ECallTypeUninitialized; |
|
455 |
break; |
|
456 |
||
457 |
case EPECallTypeCSVoice: |
|
458 |
callType = ECallTypeCSVoice; |
|
459 |
break; |
|
460 |
||
461 |
case EPECallTypeVideo: |
|
462 |
callType = ECallTypeVideo; |
|
463 |
break; |
|
464 |
||
465 |
case EPECallTypeVoIP: |
|
466 |
callType = ECallTypeVoIP; |
|
467 |
break; |
|
468 |
||
469 |
default: |
|
470 |
break; |
|
471 |
} |
|
472 |
||
473 |
return callType; |
|
474 |
} |
|
475 |
||
476 |
// ----------------------------------------------------------------------------- |
|
477 |
// CPhoneMediatorSender::ResetCommandBuffer |
|
478 |
// ----------------------------------------------------------------------------- |
|
479 |
// |
|
480 |
void CPhoneMediatorSender::ResetCommandBuffer() |
|
481 |
{ |
|
482 |
__LOGMETHODSTARTEND( EPhoneMediatorCenter, "CPhoneMediatorSender::ResetCommandBuffer( ) "); |
|
483 |
TUid nullUid = TUid::Null(); |
|
484 |
iCommandBuffer.iCommandId = KErrNotFound; |
|
485 |
iCommandBuffer.iDomainUid = nullUid; |
|
486 |
iCommandBuffer.iCategoryUid = nullUid; |
|
487 |
iCommandBuffer.iVersion = TVersion( KErrNotFound, KErrNotFound, KErrNotFound ); |
|
488 |
} |
|
489 |
||
490 |
// End of File |