|
1 /* |
|
2 * Copyright (c) 2009 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: * |
|
15 */ |
|
16 |
|
17 |
|
18 #ifndef CMEDIAMTPDATAPROVIDERSENDOBJECT_H_ |
|
19 #define CMEDIAMTPDATAPROVIDERSENDOBJECT_H_ |
|
20 |
|
21 #include "csendobject.h" |
|
22 |
|
23 /** |
|
24 * Defines media data provider SetObjectPropsList request processor |
|
25 */ |
|
26 class CMediaMtpDataProviderSendObject: public CSendObject |
|
27 { |
|
28 public: |
|
29 /** |
|
30 * @param aFramework, The data provider framework |
|
31 * @param aConnection, The connection from which the request comes |
|
32 * @param aWrapper Medadata access |
|
33 * @return A pointer to the created request processor object |
|
34 */ |
|
35 static MMmRequestProcessor* NewL( MMTPDataProviderFramework& aFramework, |
|
36 MMTPConnection& aConnection, |
|
37 MMmMtpDpConfig& aDpConfig ); |
|
38 |
|
39 /** |
|
40 * Destructor |
|
41 */ |
|
42 ~CMediaMtpDataProviderSendObject(); |
|
43 |
|
44 private: |
|
45 /** |
|
46 * Standard C++ Constructor |
|
47 * @param aFramework, The data provider framework |
|
48 * @param aConnection, The connection from which the request comes |
|
49 * @param aWrapper Medadata access |
|
50 */ |
|
51 CMediaMtpDataProviderSendObject( MMTPDataProviderFramework& aFramework, |
|
52 MMTPConnection& aConnection, |
|
53 MMmMtpDpConfig& aDpConfig ); |
|
54 |
|
55 /** |
|
56 * 2nd Phase Constructor |
|
57 */ |
|
58 void ConstructL(); |
|
59 |
|
60 protected: |
|
61 // from CSendObject |
|
62 TMTPResponseCode SetSpecificObjectPropertyL( TUint16 aPropCode, |
|
63 const CMTPObjectMetaData& aObject, |
|
64 const CMTPTypeObjectPropListElement& aElement ); |
|
65 |
|
66 TMTPResponseCode CheckSepecificPropType( TUint16 aPropCode, TUint16 aDataType ); |
|
67 |
|
68 TInt HandleSpecificWrapperError(TInt aError, |
|
69 const CMTPObjectMetaData& aObject); |
|
70 |
|
71 }; |
|
72 |
|
73 |
|
74 #endif /*CMEDIAMTPDATAPROVIDERSENDOBJECT_H_*/ |