mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/mediamtpdataprovider/src/cmediamtpdataprovidermoveobject.cpp
equal
deleted
inserted
replaced
123 if ( err == KErrNone ) |
123 if ( err == KErrNone ) |
124 { |
124 { |
125 iPropertyElement = &( iPropertyList->ReservePropElemL( aHandle, aPropCode ) ); |
125 iPropertyElement = &( iPropertyList->ReservePropElemL( aHandle, aPropCode ) ); |
126 iPropertyElement->SetStringL( CMTPTypeObjectPropListElement::EValue, textData->StringChars() ); |
126 iPropertyElement->SetStringL( CMTPTypeObjectPropListElement::EValue, textData->StringChars() ); |
127 } |
127 } |
128 else if ( err == KErrNotFound ) |
128 else |
129 { |
129 { |
130 iPropertyElement = NULL; |
130 iPropertyElement = NULL; |
131 } |
|
132 else |
|
133 { |
|
134 User::Leave( err ); |
|
135 } |
131 } |
136 |
132 |
137 CleanupStack::PopAndDestroy( textData ); // - textData |
133 CleanupStack::PopAndDestroy( textData ); // - textData |
138 } |
134 } |
139 break; |
135 break; |
148 |
144 |
149 PRINT1( _L( "MM MTP <> CMediaMtpDataProviderMoveObject::ServiceSpecificObjectPropertyL err = %d" ), err ); |
145 PRINT1( _L( "MM MTP <> CMediaMtpDataProviderMoveObject::ServiceSpecificObjectPropertyL err = %d" ), err ); |
150 |
146 |
151 if ( err == KErrNone ) |
147 if ( err == KErrNone ) |
152 { |
148 { |
153 |
|
154 iPropertyElement = &( iPropertyList->ReservePropElemL( aHandle, aPropCode ) ); |
149 iPropertyElement = &( iPropertyList->ReservePropElemL( aHandle, aPropCode ) ); |
155 iPropertyElement->SetArrayL( CMTPTypeObjectPropListElement::EValue, *desData ); |
150 iPropertyElement->SetArrayL( CMTPTypeObjectPropListElement::EValue, *desData ); |
156 } |
151 } |
157 else if ( err == KErrNotFound ) |
152 else |
158 { |
153 { |
159 iPropertyElement = NULL; |
154 iPropertyElement = NULL; |
160 } |
|
161 else |
|
162 { |
|
163 User::Leave( err ); |
|
164 } |
155 } |
165 |
156 |
166 CleanupStack::PopAndDestroy( desData ); // - desData |
157 CleanupStack::PopAndDestroy( desData ); // - desData |
167 } |
158 } |
168 break; |
159 break; |
181 if ( err == KErrNone ) |
172 if ( err == KErrNone ) |
182 { |
173 { |
183 iPropertyElement = &( iPropertyList->ReservePropElemL( aHandle, aPropCode ) ); |
174 iPropertyElement = &( iPropertyList->ReservePropElemL( aHandle, aPropCode ) ); |
184 iPropertyElement->SetUint16L( CMTPTypeObjectPropListElement::EValue, uint16.Value() ); |
175 iPropertyElement->SetUint16L( CMTPTypeObjectPropListElement::EValue, uint16.Value() ); |
185 } |
176 } |
186 else if ( err == KErrNotFound ) |
177 else |
187 { |
178 { |
188 iPropertyElement = NULL; |
179 iPropertyElement = NULL; |
189 } |
|
190 else |
|
191 { |
|
192 User::Leave( err ); |
|
193 } |
180 } |
194 } |
181 } |
195 break; |
182 break; |
196 |
183 |
197 case EMTPObjectPropCodeWidth: |
184 case EMTPObjectPropCodeWidth: |
215 if ( err == KErrNone ) |
202 if ( err == KErrNone ) |
216 { |
203 { |
217 iPropertyElement = &( iPropertyList->ReservePropElemL( aHandle, aPropCode ) ); |
204 iPropertyElement = &( iPropertyList->ReservePropElemL( aHandle, aPropCode ) ); |
218 iPropertyElement->SetUint32L( CMTPTypeObjectPropListElement::EValue, uint32.Value() ); |
205 iPropertyElement->SetUint32L( CMTPTypeObjectPropListElement::EValue, uint32.Value() ); |
219 } |
206 } |
220 else if ( err == KErrNotFound ) |
207 else |
221 { |
208 { |
222 iPropertyElement = NULL; |
209 iPropertyElement = NULL; |
223 } |
|
224 else |
|
225 { |
|
226 User::Leave( err ); |
|
227 } |
210 } |
228 } |
211 } |
229 break; |
212 break; |
230 |
213 |
231 case EMTPExtObjectPropCodeOmaDrmStatus: |
214 case EMTPExtObjectPropCodeOmaDrmStatus: |