9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 |
|
18 |
17 |
19 #ifndef ABSTRACTMEDIAMTPDATAPROVIDERCONST_H |
18 #ifndef ABSTRACTMEDIAMTPDATAPROVIDERCONST_H |
20 #define ABSTRACTMEDIAMTPDATAPROVIDERCONST_H |
19 #define ABSTRACTMEDIAMTPDATAPROVIDERCONST_H |
21 |
20 |
22 #include <mtp/mtpprotocolconstants.h> |
21 #include <mtp/mtpprotocolconstants.h> |
|
22 #include "mmmtpdp_variant.hrh" |
|
23 |
|
24 enum TMmMtpSampleSizeRange |
|
25 { |
|
26 EMTPMinSampleSize = 0x00000001, // 1 bytes |
|
27 EMTPMaxSampleSize = 0x00010000, // 64 kb |
|
28 EMTPStepSampleSize = 0x00000001 // 1 byte |
|
29 }; |
|
30 |
|
31 enum TMmMtpSampleHeightRange |
|
32 { |
|
33 EMTPSampleMinHeight = 0x00000001, // 1 pixel |
|
34 EMTPSampleMaxHeight = 0x00000168, // 360 pixel |
|
35 EMTPSampleStepHeight = 0x00000001 // 1 pixel |
|
36 }; |
|
37 |
|
38 enum TMmMtpSampleWidthRange |
|
39 { |
|
40 EMTPSampleMinWidth = 0x00000001, // 1 pixel |
|
41 EMTPSampleMaxWidth = 0x00000168, // 360 pixel |
|
42 EMTPSampleStepWidth = 0x00000001 // 1 pixel |
|
43 }; |
|
44 |
|
45 // Supported sample format |
|
46 static const TUint16 TMmMtpSupportedSampleFormat[] = |
|
47 { |
|
48 EMTPFormatCodeEXIFJPEG |
|
49 }; |
23 |
50 |
24 const TUint16 EMTPExtOpCodeAbstractMediaPreference = 0x9203; |
51 const TUint16 EMTPExtOpCodeAbstractMediaPreference = 0x9203; |
25 |
52 |
26 /** |
53 /** |
27 * define all the operations that are supported by the abstractmedia data provider |
54 * define all the operations that are supported by the abstractmedia data provider |
28 */ |
55 */ |
29 static const TUint16 KAbstractMediaMtpDataProviderSupportedFormats[] = |
56 static const TUint16 KAbstractMediaMtpDataProviderSupportedFormats[] = |
30 { |
57 { |
|
58 #ifdef MMMTPDP_ABSTRACTAUDIOALBUM_SUPPORT |
|
59 EMTPFormatCodeAbstractAudioAlbum, |
|
60 #endif |
31 EMTPFormatCodeM3UPlaylist, |
61 EMTPFormatCodeM3UPlaylist, |
32 EMTPFormatCodeAbstractAudioVideoPlaylist |
62 EMTPFormatCodeAbstractAudioVideoPlaylist |
33 }; |
63 }; |
34 |
64 |
35 /** |
65 /** |
53 |
83 |
54 // Recommended |
84 // Recommended |
55 EMTPOpCodeGetObjectPropList, |
85 EMTPOpCodeGetObjectPropList, |
56 EMTPOpCodeSetObjectPropList, |
86 EMTPOpCodeSetObjectPropList, |
57 EMTPOpCodeGetInterdependentPropDesc, |
87 EMTPOpCodeGetInterdependentPropDesc, |
58 |
88 |
59 EMTPExtOpCodeAbstractMediaPreference, // 0x9203 |
89 EMTPExtOpCodeAbstractMediaPreference, // 0x9203 |
60 |
90 |
61 EMTPOpCodeCopyObject, |
91 EMTPOpCodeCopyObject, |
62 EMTPOpCodeMoveObject, |
92 EMTPOpCodeMoveObject, |
63 |
93 |
64 EMTPOpCodeSendObjectPropList, |
94 EMTPOpCodeSendObjectPropList, |
65 EMTPOpCodeGetFormatCapabilities |
95 EMTPOpCodeGetFormatCapabilities |
66 }; |
96 }; |
67 |
97 |
68 #if 0 |
98 // Mandatory properties for ALB |
69 /** |
99 static const TUint16 KMmMtpDpSupportedPropMandatoryALB[] = |
70 * define all the object properties that are supported by the abstract media data provider |
|
71 */ |
|
72 static const TUint16 KAbstractMediaMtpDataProviderSupportedProperties[] = |
|
73 { |
100 { |
74 // Mandatory for all objects |
101 EMTPObjectPropCodeRepresentativeSampleFormat, |
75 EMTPObjectPropCodeStorageID, |
102 EMTPObjectPropCodeRepresentativeSampleSize, |
76 EMTPObjectPropCodeObjectFormat, |
103 EMTPObjectPropCodeRepresentativeSampleHeight, |
77 EMTPObjectPropCodeProtectionStatus, |
104 EMTPObjectPropCodeRepresentativeSampleWidth, |
78 EMTPObjectPropCodeObjectSize, |
105 EMTPObjectPropCodeRepresentativeSampleData, |
79 EMTPObjectPropCodeObjectFileName, |
106 EMTPObjectPropCodeAlbumArtist |
80 EMTPObjectPropCodeParentObject, |
|
81 EMTPObjectPropCodePersistentUniqueObjectIdentifier, |
|
82 EMTPObjectPropCodeName, |
|
83 EMTPObjectPropCodeNonConsumable, |
|
84 |
|
85 // additional for all |
|
86 EMTPObjectPropCodeDateAdded, |
|
87 EMTPObjectPropCodeDateCreated, |
|
88 EMTPObjectPropCodeDateModified, |
|
89 }; |
107 }; |
90 #endif |
|
91 |
|
92 |
108 |
93 #endif // ABSTRACTMEDIAMTPDATAPROVIDERCONST_H |
109 #endif // ABSTRACTMEDIAMTPDATAPROVIDERCONST_H |