34 class CSetObjectPropList : public CRequestProcessor |
34 class CSetObjectPropList : public CRequestProcessor |
35 { |
35 { |
36 public: |
36 public: |
37 /** |
37 /** |
38 * Two-phase construction method |
38 * Two-phase construction method |
39 * @param aFramework, The data provider framework |
39 * @param aFramework The data provider framework |
40 * @param aConnection, The connection from which the request comes |
40 * @param aConnection The connection from which the request comes |
41 * @param aWrapper medadata access interface |
41 * @param aDpConfig Configuration of data provider |
42 * @return a pointer to the created request processor object |
42 * @return The pointer to the created request processor object |
43 */ |
43 */ |
44 //IMPORT_C static MMmRequestProcessor* NewL( MMTPDataProviderFramework& aFramework, |
44 IMPORT_C static MMmRequestProcessor* NewL( MMTPDataProviderFramework& aFramework, |
45 // MMTPConnection& aConnection, |
45 MMTPConnection& aConnection, |
46 // CMmMtpDpMetadataAccessWrapper& aWrapper ); |
46 MMmMtpDpConfig& aDpConfig ); |
47 |
47 |
48 /** |
48 /** |
49 * Destructor |
49 * Destructor |
50 */ |
50 */ |
51 IMPORT_C virtual ~CSetObjectPropList(); |
51 IMPORT_C virtual ~CSetObjectPropList(); |
52 |
52 |
53 protected: |
53 private: |
54 /** |
54 /** |
55 * Standard c++ constructor |
55 * Standard c++ constructor |
56 * @param aFramework The data provider framework |
56 * @param aFramework The data provider framework |
57 * @param aConnection The connection from which the request comes |
57 * @param aConnection The connection from which the request comes |
58 * @param aWrapper medadata access interface |
58 * @param aDpConfig Configuration of data provider |
|
59 * @return The pointer to the created request processor object |
59 */ |
60 */ |
60 IMPORT_C CSetObjectPropList( MMTPDataProviderFramework& aFramework, |
61 CSetObjectPropList( MMTPDataProviderFramework& aFramework, |
61 MMTPConnection& aConnection, |
62 MMTPConnection& aConnection, |
62 MMmMtpDpConfig& aDpConfig ); |
63 MMmMtpDpConfig& aDpConfig ); |
63 |
64 |
64 /** |
65 /** |
65 * 2nd Phase Constructor |
66 * 2nd Phase Constructor |
66 */ |
67 */ |
67 IMPORT_C void ConstructL(); |
68 void ConstructL(); |
68 |
69 |
69 protected: |
70 protected: |
70 // from CRequestProcessor |
71 // from CRequestProcessor |
|
72 /** |
|
73 * Verify the reqeust |
|
74 * @return EMTPRespCodeOK if request is verified, otherwise one of |
|
75 * the error response codes |
|
76 */ |
|
77 IMPORT_C TMTPResponseCode CheckRequestL(); |
|
78 |
71 /** |
79 /** |
72 * SetObjectPropList request handler |
80 * SetObjectPropList request handler |
73 */ |
81 */ |
74 IMPORT_C void ServiceL(); |
82 IMPORT_C void ServiceL(); |
75 |
83 |
98 /** |
106 /** |
99 * Ignore the error, continue with the next one |
107 * Ignore the error, continue with the next one |
100 */ |
108 */ |
101 IMPORT_C TInt RunError( TInt aError ); |
109 IMPORT_C TInt RunError( TInt aError ); |
102 |
110 |
103 protected: |
|
104 // new virtuals |
|
105 /** |
|
106 * Set MetaData to CMetadataAccessWrapper, for internal use |
|
107 * @param aPropCode, specify property code of aMediaProp |
|
108 * @param aNewData, object property value which will be get from |
|
109 * aObjectMetaData |
|
110 * @param aObjectMetaData, owner of the property which should be |
|
111 * inserted or updated into database |
|
112 * @return response code |
|
113 */ |
|
114 IMPORT_C TMTPResponseCode ServiceMetaDataToWrapperL( const TUint16 aPropCode, |
|
115 MMTPType& aNewData, |
|
116 const CMTPObjectMetaData& aObjectMetaData ); |
|
117 |
|
118 virtual TMTPResponseCode ServiceSpecificObjectPropertyL( TUint16 aPropCode, |
|
119 const CMTPObjectMetaData& aObject, |
|
120 const CMTPTypeObjectPropListElement& aElement ) = 0; |
|
121 |
|
122 virtual TInt HandleSpecificWrapperError( TInt aError, |
|
123 const CMTPObjectMetaData& aObject) = 0; |
|
124 |
|
125 private: |
111 private: |
126 /* |
112 /* |
127 * Handle response phase of SetObjectPropListL operation |
113 * Handle response phase of SetObjectPropListL operation |
128 */ |
114 */ |
129 TMTPResponseCode SetObjectPropListL( const CMTPTypeObjectPropListElement& aPropListElement ); |
115 TMTPResponseCode SetObjectPropListL( const CMTPTypeObjectPropListElement& aPropListElement ); |