21 #include <mtp/mmtpdataproviderframework.h> |
21 #include <mtp/mmtpdataproviderframework.h> |
22 #include <mtp/tmtptypeevent.h> |
22 #include <mtp/tmtptypeevent.h> |
23 #include <mtp/mmtpconnection.h> |
23 #include <mtp/mmtpconnection.h> |
24 #include <mtp/mmtpobjectmgr.h> |
24 #include <mtp/mmtpobjectmgr.h> |
25 #include <e32property.h> |
25 #include <e32property.h> |
26 #include <MtpPrivatePSKeys.h> |
26 #include <mtpprivatepskeys.h> |
27 |
27 |
28 #include "crequestprocessor.h" |
28 #include "crequestprocessor.h" |
29 #include "crequestchecker.h" |
29 #include "crequestchecker.h" |
30 #include "mmmtpdplogger.h" |
30 #include "mmmtpdplogger.h" |
31 |
31 |
37 // ----------------------------------------------------------------------------- |
37 // ----------------------------------------------------------------------------- |
38 // |
38 // |
39 EXPORT_C CRequestProcessor::CRequestProcessor( MMTPDataProviderFramework& aFramework, |
39 EXPORT_C CRequestProcessor::CRequestProcessor( MMTPDataProviderFramework& aFramework, |
40 MMTPConnection& aConnection, |
40 MMTPConnection& aConnection, |
41 TInt aElementCount, |
41 TInt aElementCount, |
42 const TMTPRequestElementInfo* aElements ): |
42 const TMTPRequestElementInfo* aElements ) : |
43 CActive( EPriorityStandard ), |
43 CActive( EPriorityStandard ), |
44 iFramework( aFramework ), |
44 iFramework( aFramework ), |
45 iConnection( aConnection ), |
45 iConnection( aConnection ), |
46 iElementCount( aElementCount ), |
46 iElementCount( aElementCount ), |
47 iElements( aElements ) |
47 iElements( aElements ) |
48 { |
48 { |
|
49 // Note: It has been moved to specific operation handler |
|
50 // Some operations don't need add into active scheduler |
49 // CActiveScheduler::Add( this ); |
51 // CActiveScheduler::Add( this ); |
50 } |
52 } |
51 |
53 |
52 // ----------------------------------------------------------------------------- |
54 // ----------------------------------------------------------------------------- |
53 // CRequestProcessor::~CRequestProcessor |
55 // CRequestProcessor::~CRequestProcessor |
54 // Destructor |
56 // Destructor |
55 // ----------------------------------------------------------------------------- |
57 // ----------------------------------------------------------------------------- |
56 // |
58 // |
57 EXPORT_C CRequestProcessor::~CRequestProcessor() |
59 EXPORT_C CRequestProcessor::~CRequestProcessor() |
58 { |
60 { |
59 // Cancel(); |
61 // Note: It has been moved to specific operation handler |
|
62 // Some operations don't need add into active scheduler |
|
63 // Cancel(); |
60 iNullBuffer.Close(); |
64 iNullBuffer.Close(); |
61 delete iRequestChecker; |
65 delete iRequestChecker; |
62 } |
66 } |
63 |
67 |
64 // ----------------------------------------------------------------------------- |
68 // ----------------------------------------------------------------------------- |
388 // part of active object framework, provide default implementation |
392 // part of active object framework, provide default implementation |
389 // ----------------------------------------------------------------------------- |
393 // ----------------------------------------------------------------------------- |
390 // |
394 // |
391 EXPORT_C void CRequestProcessor::RunL() |
395 EXPORT_C void CRequestProcessor::RunL() |
392 { |
396 { |
393 |
397 // Do nothing |
394 } |
398 } |
395 |
399 |
396 // ----------------------------------------------------------------------------- |
400 // ----------------------------------------------------------------------------- |
397 // CRequestProcessor::DoCancel |
401 // CRequestProcessor::DoCancel |
398 // part of active object framework, provide default implementation |
402 // part of active object framework, provide default implementation |
399 // ----------------------------------------------------------------------------- |
403 // ----------------------------------------------------------------------------- |
400 // |
404 // |
401 EXPORT_C void CRequestProcessor::DoCancel() |
405 EXPORT_C void CRequestProcessor::DoCancel() |
402 { |
406 { |
403 |
407 // Do nothing |
404 } |
408 } |
405 |
409 |
406 // ----------------------------------------------------------------------------- |
410 // ----------------------------------------------------------------------------- |
407 // CRequestProcessor::RunError |
411 // CRequestProcessor::RunError |
408 // part of active object framework, provide default implementation |
412 // part of active object framework, provide default implementation |