mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/crequestprocessor.cpp
equal
deleted
inserted
replaced
19 #include <mtp/mtpprotocolconstants.h> |
19 #include <mtp/mtpprotocolconstants.h> |
20 #include <mtp/tmtptyperequest.h> |
20 #include <mtp/tmtptyperequest.h> |
21 #include <mtp/tmtptypeevent.h> |
21 #include <mtp/tmtptypeevent.h> |
22 #include <mtp/mmtpconnection.h> |
22 #include <mtp/mmtpconnection.h> |
23 #include <mtp/mmtpobjectmgr.h> |
23 #include <mtp/mmtpobjectmgr.h> |
24 #include <e32property.h> |
|
25 #include <mtpprivatepskeys.h> |
|
26 |
24 |
27 #include "crequestprocessor.h" |
25 #include "crequestprocessor.h" |
28 #include "crequestchecker.h" |
26 #include "crequestchecker.h" |
|
27 #include "mmmtpdputility.h" |
29 #include "mmmtpdplogger.h" |
28 #include "mmmtpdplogger.h" |
30 |
29 |
31 static const TInt KNullBufferSize = 4096; |
30 static const TInt KNullBufferSize = 4096; |
32 |
31 |
33 // ----------------------------------------------------------------------------- |
32 // ----------------------------------------------------------------------------- |
212 result = DoHandleResponsePhaseL(); |
211 result = DoHandleResponsePhaseL(); |
213 } |
212 } |
214 break; |
213 break; |
215 |
214 |
216 case ECompletingPhase: |
215 case ECompletingPhase: |
|
216 MmMtpDpUtility::SetPSStatus(EMtpPSStatusReadyToSync); |
217 result = DoHandleCompletingPhaseL(); |
217 result = DoHandleCompletingPhaseL(); |
218 break; |
218 break; |
219 |
219 |
220 default: |
220 default: |
221 PRINT( _L( "MM MTP <> CRequestProcessor::HandleRequestL default" ) ); |
221 PRINT( _L( "MM MTP <> CRequestProcessor::HandleRequestL default" ) ); |
425 { |
425 { |
426 return EFalse; |
426 return EFalse; |
427 } |
427 } |
428 |
428 |
429 // ----------------------------------------------------------------------------- |
429 // ----------------------------------------------------------------------------- |
430 // CRequestProcessor::SetPSStatus |
|
431 // Set P&S Status to avoid MPX access conflict |
|
432 // ----------------------------------------------------------------------------- |
|
433 // |
|
434 void CRequestProcessor::SetPSStatus() |
|
435 { |
|
436 TInt mtpStatus; |
|
437 RProperty::Get( KMtpPSUid, KMtpPSStatus, mtpStatus); |
|
438 |
|
439 if ( mtpStatus != EMtpPSStatusActive ) |
|
440 { |
|
441 TInt err = RProperty::Set( KMtpPSUid, KMtpPSStatus, EMtpPSStatusActive ); |
|
442 PRINT1( _L("MM MTP <> CRequestProcessor::SetPSStatus err = %d" ), err ); |
|
443 } |
|
444 } |
|
445 |
|
446 // ----------------------------------------------------------------------------- |
|
447 // CRequestProcessor::ExtractSessionTransactionId |
430 // CRequestProcessor::ExtractSessionTransactionId |
448 // retrieve the session id and transaction code from the current request |
431 // retrieve the session id and transaction code from the current request |
449 // ----------------------------------------------------------------------------- |
432 // ----------------------------------------------------------------------------- |
450 // |
433 // |
451 void CRequestProcessor::ExtractSessionTransactionId() |
434 void CRequestProcessor::ExtractSessionTransactionId() |