17 |
17 |
18 #ifndef ABSTRACTMEDIAMTPDATAPROVIDERCONST_H |
18 #ifndef ABSTRACTMEDIAMTPDATAPROVIDERCONST_H |
19 #define ABSTRACTMEDIAMTPDATAPROVIDERCONST_H |
19 #define ABSTRACTMEDIAMTPDATAPROVIDERCONST_H |
20 |
20 |
21 #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 }; |
22 |
50 |
23 const TUint16 EMTPExtOpCodeAbstractMediaPreference = 0x9203; |
51 const TUint16 EMTPExtOpCodeAbstractMediaPreference = 0x9203; |
24 |
52 |
25 /** |
53 /** |
26 * 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 |
27 */ |
55 */ |
28 static const TUint16 KAbstractMediaMtpDataProviderSupportedFormats[] = |
56 static const TUint16 KAbstractMediaMtpDataProviderSupportedFormats[] = |
29 { |
57 { |
|
58 #ifdef MMMTPDP_ABSTRACTAUDIOALBUM_SUPPORT |
|
59 EMTPFormatCodeAbstractAudioAlbum, |
|
60 #endif |
30 EMTPFormatCodeM3UPlaylist, |
61 EMTPFormatCodeM3UPlaylist, |
31 EMTPFormatCodeAbstractAudioVideoPlaylist |
62 EMTPFormatCodeAbstractAudioVideoPlaylist |
32 }; |
63 }; |
33 |
64 |
34 /** |
65 /** |
62 |
93 |
63 EMTPOpCodeSendObjectPropList, |
94 EMTPOpCodeSendObjectPropList, |
64 EMTPOpCodeGetFormatCapabilities |
95 EMTPOpCodeGetFormatCapabilities |
65 }; |
96 }; |
66 |
97 |
|
98 // Mandatory properties for ALB |
|
99 static const TUint16 KMmMtpDpSupportedPropMandatoryALB[] = |
|
100 { |
|
101 EMTPObjectPropCodeRepresentativeSampleFormat, |
|
102 EMTPObjectPropCodeRepresentativeSampleSize, |
|
103 EMTPObjectPropCodeRepresentativeSampleHeight, |
|
104 EMTPObjectPropCodeRepresentativeSampleWidth, |
|
105 EMTPObjectPropCodeRepresentativeSampleData, |
|
106 EMTPObjectPropCodeAlbumArtist |
|
107 }; |
|
108 |
67 #endif // ABSTRACTMEDIAMTPDATAPROVIDERCONST_H |
109 #endif // ABSTRACTMEDIAMTPDATAPROVIDERCONST_H |