|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef CMTPSETDEVICEPROPVALUE_H |
|
22 #define CMTPSETDEVICEPROPVALUE_H |
|
23 |
|
24 #include "cmtpgetdevicepropdesc.h" |
|
25 #include "mtpdebug.h" |
|
26 |
|
27 class CMTPTypeString; |
|
28 |
|
29 /** |
|
30 Implements the device data provider SetDevicePropValue request processor. |
|
31 @internalComponent |
|
32 */ |
|
33 class CMTPSetDevicePropValue : public CMTPGetDevicePropDesc |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection); |
|
39 ~CMTPSetDevicePropValue(); |
|
40 |
|
41 private: |
|
42 |
|
43 CMTPSetDevicePropValue(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection); |
|
44 void ConstructL(); |
|
45 |
|
46 void CompleteServiceDeviceFriendlyNameL(); |
|
47 void CompleteServiceSynchronisationPartnerL(); |
|
48 |
|
49 private: // From CMTPRequestProcessor |
|
50 |
|
51 TBool DoHandleResponsePhaseL(); |
|
52 TBool HasDataphase() const; |
|
53 TMTPResponseCode CheckRequestL(); |
|
54 |
|
55 private: // From CMTPGetDevicePropDesc |
|
56 |
|
57 void ServiceBatteryLevelL(); |
|
58 void ServiceDeviceFriendlyNameL(); |
|
59 void ServiceSynchronisationPartnerL(); |
|
60 void CompleteServiceSessionInitiatorVersionInfoL(); |
|
61 void ServiceSessionInitiatorVersionInfoL(); |
|
62 void CompletePerceivedDeviceTypeL(); |
|
63 void ServicePerceivedDeviceTypeL(); |
|
64 void CompleteServiceDateTimeL(); |
|
65 void ServiceDateTimeL(); |
|
66 void CompleteDeviceIconL(); |
|
67 void ServiceDeviceIconL(); |
|
68 void CompleteServiceSupportedFormatsOrderedL(); |
|
69 void ServiceSupportedFormatsOrderedL(); |
|
70 void ServiceUseDeviceStageL(); |
|
71 void CompleteServiceUseDeviceStageL(); |
|
72 void ServiceModelIDL(); |
|
73 void CompleteServiceModelIDL(); |
|
74 void ServiceFunctionalIDL(); |
|
75 void CompleteServiceFunctionalIDL(); |
|
76 void HandleExtnServiceL(TInt aPropCode, MExtnDevicePropDp* aExtnDevplugin); |
|
77 |
|
78 private: // Owned |
|
79 |
|
80 /** |
|
81 FLOGGER debug trace member variable. |
|
82 */ |
|
83 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
84 |
|
85 CMTPTypeString* iString; |
|
86 TMTPTypeUint32 iUint32; |
|
87 TMTPTypeUint8 iUint8; |
|
88 CMTPTypeArray* iMtparray; |
|
89 TMTPTypeGuid* iData; |
|
90 |
|
91 // |
|
92 |
|
93 }; |
|
94 |
|
95 #endif // CMTPSETDEVICEPROPVALUE_H |
|
96 |