|
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 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef MTPDEVICEDPCONST_H |
|
22 #define MTPDEVICEDPCONST_H |
|
23 |
|
24 #include <mtp/mtpprotocolconstants.h> |
|
25 |
|
26 /** |
|
27 define all the operations that are supported by the device data provider |
|
28 */ |
|
29 static const TUint16 KMTPDeviceDpSupportedOperations[] = |
|
30 { |
|
31 EMTPOpCodeGetDeviceInfo, |
|
32 EMTPOpCodeOpenSession, |
|
33 EMTPOpCodeCloseSession, |
|
34 EMTPOpCodeGetStorageIDs, |
|
35 EMTPOpCodeGetStorageInfo, |
|
36 EMTPOpCodeGetNumObjects, |
|
37 EMTPOpCodeGetObjectHandles, |
|
38 EMTPOpCodeResetDevice, |
|
39 EMTPOpCodeGetDevicePropDesc, |
|
40 EMTPOpCodeGetDevicePropValue, |
|
41 EMTPOpCodeSetDevicePropValue, |
|
42 EMTPOpCodeCopyObject, |
|
43 EMTPOpCodeMoveObject, |
|
44 EMTPOpCodeDeleteObject, |
|
45 EMTPOpCodeGetObject, |
|
46 EMTPOpCodeGetObjectInfo, |
|
47 EMTPOpCodeGetObjectPropDesc, |
|
48 EMTPOpCodeGetObjectPropList, |
|
49 EMTPOpCodeGetObjectPropsSupported, |
|
50 EMTPOpCodeGetObjectPropValue, |
|
51 EMTPOpCodeGetObjectReferences, |
|
52 EMTPOpCodeGetInterdependentPropDesc, |
|
53 EMTPOpCodeSendObject, |
|
54 EMTPOpCodeSendObjectInfo, |
|
55 EMTPOpCodeSendObjectPropList, |
|
56 EMTPOpCodeSetObjectPropList, |
|
57 EMTPOpCodeSetObjectPropValue, |
|
58 EMTPOpCodeSetObjectReferences, |
|
59 EMTPOpCodeGetServiceIDs, |
|
60 EMTPOpCodeGetFormatCapabilities |
|
61 }; |
|
62 |
|
63 /** |
|
64 define all the device properties supported by the device data provider |
|
65 */ |
|
66 static const TUint16 KMTPDeviceDpSupportedProperties[] = |
|
67 { |
|
68 //PTP |
|
69 EMTPDevicePropCodeBatteryLevel, |
|
70 |
|
71 //MTP specific |
|
72 EMTPDevicePropCodeSynchronizationPartner, |
|
73 EMTPDevicePropCodeDeviceFriendlyName, |
|
74 EMTPDevicePropCodeSupportedFormatsOrdered, |
|
75 EMTPDevicePropCodeSessionInitiatorVersionInfo, |
|
76 EMTPDevicePropCodePerceivedDeviceType, |
|
77 EMTPDevicePropCodeDateTime, |
|
78 EMTPDevicePropCodeDeviceIcon, |
|
79 |
|
80 //MTP Device Service Extension |
|
81 EMTPDevicePropCodeFunctionalID, |
|
82 EMTPDevicePropCodeModelID, |
|
83 EMTPDevicePropCodeUseDeviceStage |
|
84 |
|
85 }; |
|
86 |
|
87 static const TUint16 KMTPDeviceDpSupportedServiceExtnProperties[] = |
|
88 { |
|
89 //MTP Device Service Extension |
|
90 EMTPDevicePropCodeFunctionalID, |
|
91 EMTPDevicePropCodeModelID, |
|
92 EMTPDevicePropCodeUseDeviceStage |
|
93 }; |
|
94 |
|
95 /** |
|
96 define all the object properties supported by the device data provider |
|
97 */ |
|
98 |
|
99 static const TUint16 KMTPDeviceDpSupportedObjectProperties[] = |
|
100 { |
|
101 //Folder properties |
|
102 EMTPObjectPropCodeStorageID, |
|
103 EMTPObjectPropCodeObjectFormat, |
|
104 EMTPObjectPropCodeProtectionStatus, |
|
105 EMTPObjectPropCodeAssociationType, |
|
106 EMTPObjectPropCodeAssociationDesc, |
|
107 EMTPObjectPropCodeObjectSize, |
|
108 EMTPObjectPropCodeObjectFileName, |
|
109 EMTPObjectPropCodeDateModified, |
|
110 EMTPObjectPropCodeParentObject, |
|
111 EMTPObjectPropCodePersistentUniqueObjectIdentifier, |
|
112 EMTPObjectPropCodeName, |
|
113 EMTPObjectPropCodeNonConsumable |
|
114 }; |
|
115 |
|
116 static const TUint16 KMTPDeviceDpSupportedEvents[] = |
|
117 { |
|
118 //PTP |
|
119 EMTPEventCodeStoreAdded, |
|
120 EMTPEventCodeStoreRemoved, |
|
121 EMTPEventCodeDevicePropChanged, |
|
122 EMTPEventCodeDeviceInfoChanged, |
|
123 EMTPEventCodeStoreFull, |
|
124 EMTPEventCodeDeviceReset, |
|
125 EMTPEventCodeStorageInfoChanged, |
|
126 }; |
|
127 |
|
128 const TInt32 KMTPDevicePropertyStoreVersion(0x00000100); |
|
129 const TUint KMTPDriveLetterPrefixLength(3); |
|
130 const TUint KMTPMaxDevicePropertyLength(255); |
|
131 const TUint KMTPSerialNumberLength(32); |
|
132 |
|
133 /** |
|
134 Device property value defaults. |
|
135 */ |
|
136 const TInt KMTPDefaultBatteryLevel(0); |
|
137 |
|
138 /** |
|
139 DeviceInfo dataset field defaults. |
|
140 */ |
|
141 _LIT(KMTPDefaultSerialNumber, "350149101482769"); |
|
142 _LIT(KMTPDefaultManufacturer, "Symbian"); |
|
143 _LIT(KMTPDefaultModel, "1234567890"); |
|
144 _LIT(KMTPDefaultDeviceVersion, "1.0"); |
|
145 |
|
146 /** |
|
147 *This enumerator to identify resource file prameters. |
|
148 * EDevDpFormats is to identify FORMATS |
|
149 * EDevDpExtnUids is to identify UIDs for extn plugin. |
|
150 */ |
|
151 enum TDevDPConfigRSSParams |
|
152 { |
|
153 EDevDpFormats = 0, |
|
154 EDevDpExtnUids = 1, |
|
155 |
|
156 }; |
|
157 |
|
158 #endif // MTPDEVICEDPCONST_H |
|
159 |