|
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 |
|
19 #ifndef CMEDIAMTPDATAPROVIDERSETOBJECTPROPVALUE_H |
|
20 #define CMEDIAMTPDATAPROVIDERSETOBJECTPROPVALUE_H |
|
21 |
|
22 #include "csetobjectpropvalue.h" |
|
23 |
|
24 /** |
|
25 * Defines media data provider SetObjectPropValue request processor |
|
26 */ |
|
27 class CMediaMtpDataProviderSetObjectPropValue: public CSetObjectPropValue |
|
28 { |
|
29 public: |
|
30 /** |
|
31 * Two-phase construction method |
|
32 * @param aFramework The data provider framework |
|
33 * @param aConnection The connection from which the request comes |
|
34 * @param aWrapper Medadata access |
|
35 * @return a pointer to the created request processor object |
|
36 */ |
|
37 static MMmRequestProcessor* NewL( MMTPDataProviderFramework& aFramework, |
|
38 MMTPConnection& aConnection, |
|
39 MMmMtpDpConfig& aDpConfig ); |
|
40 |
|
41 /** |
|
42 * Destructor |
|
43 */ |
|
44 ~CMediaMtpDataProviderSetObjectPropValue(); |
|
45 |
|
46 private: |
|
47 /** |
|
48 * Standard c++ constructor |
|
49 * @param aFramework The data provider framework |
|
50 * @param aConnection The connection from which the request comes |
|
51 * @param aWrapper Medadata access |
|
52 */ |
|
53 CMediaMtpDataProviderSetObjectPropValue( MMTPDataProviderFramework& aFramework, |
|
54 MMTPConnection& aConnection, |
|
55 MMmMtpDpConfig& aDpConfig ); |
|
56 |
|
57 /** |
|
58 * two-phase construction |
|
59 */ |
|
60 void ConstructL(); |
|
61 |
|
62 protected: |
|
63 // from CSetObjectPropValue |
|
64 TBool IsSpecificPropCodeReadOnly( TUint16 aPropCode ) const; |
|
65 |
|
66 void ReceiveDataSpecificObjectPropertyL( TUint16 aPropCode ); |
|
67 |
|
68 TMTPResponseCode ServiceSpecificObjectPropertyL( TUint16 aPropCode ); |
|
69 |
|
70 }; |
|
71 |
|
72 #endif // CMEDIAMTPDATAPROVIDERSETOBJECTPROPVALUE_H |