|
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 #ifndef CMEDIAMTPDATAPROVIDERGETFORMATCAPABILITIES_H |
|
18 #define CMEDIAMTPDATAPROVIDERGETFORMATCAPABILITIES_H |
|
19 |
|
20 #include "cgetformatcapabilities.h" |
|
21 |
|
22 class CMTPTypeObjectPropDesc; |
|
23 /** |
|
24 * Defines media data provider GetFormatCapabilities |
|
25 */ |
|
26 class CMediaMtpDataProviderGetFormatCapabilities : public CGetFormatCapabilities |
|
27 { |
|
28 public: |
|
29 |
|
30 /** |
|
31 * @param aFramework, The data provider framework |
|
32 * @param aConnection, The connection from which the request comes |
|
33 * @param aWrapper Medadata access |
|
34 * @return A pointer to the created request processor object |
|
35 */ |
|
36 static MMmRequestProcessor* NewL( MMTPDataProviderFramework& aFramework, |
|
37 MMTPConnection& aConnection, |
|
38 MMmMtpDpConfig& aDpConfig ); |
|
39 |
|
40 /** |
|
41 * Destructor |
|
42 */ |
|
43 ~CMediaMtpDataProviderGetFormatCapabilities(); |
|
44 |
|
45 protected: |
|
46 // from CGetFormatCapabilities, override from baseclass |
|
47 /** |
|
48 * Service interdepent propdesc |
|
49 */ |
|
50 void ServiceInterdepentPropDescL(); |
|
51 |
|
52 /** |
|
53 * Service specific object property |
|
54 * @param aPropCode, The prop code |
|
55 * @return MTPType object propdesc |
|
56 */ |
|
57 CMTPTypeObjectPropDesc* ServiceSpecificPropertyDescL( TUint16 aPropCode ); |
|
58 |
|
59 private: |
|
60 /** |
|
61 * Standard C++ Constructor |
|
62 * @param aFramework, The data provider framework |
|
63 * @param aConnection, The connection from which the request comes |
|
64 * @param aWrapper Medadata access |
|
65 */ |
|
66 CMediaMtpDataProviderGetFormatCapabilities( MMTPDataProviderFramework& aFramework, |
|
67 MMTPConnection& aConnection, |
|
68 MMmMtpDpConfig& aDpConfig ); |
|
69 |
|
70 /** |
|
71 * two-phase construction |
|
72 */ |
|
73 void ConstructL(); |
|
74 |
|
75 //functions used by ServiceInterdepentPropDesc |
|
76 /** |
|
77 * Service AudioWaveCodec |
|
78 * @param aFormatCode, The format code |
|
79 * @return MTPTypeInterdependentProperties |
|
80 */ |
|
81 CMTPTypeObjectPropDesc* ServiceAudioWaveCodecL(); |
|
82 |
|
83 /** |
|
84 * Service AudioBitrate |
|
85 * @param aFormatCode, The format code |
|
86 * @return MTPTypeInterdependentProperties |
|
87 */ |
|
88 CMTPTypeObjectPropDesc* ServiceAudioBitrateL(); |
|
89 |
|
90 /** |
|
91 * Service videoFourCCCodec |
|
92 * @param aFormatCode, The format code |
|
93 * @return MTPTypeInterdependentProperties |
|
94 */ |
|
95 CMTPTypeObjectPropDesc* ServiceVideoFourCCCodecL(); |
|
96 |
|
97 /** |
|
98 * Service VideoBitrate |
|
99 * @param aFormatCode, The format code |
|
100 * @return MTPTypeInterdependentProperties |
|
101 */ |
|
102 CMTPTypeObjectPropDesc* ServiceVideoBitrateL(); |
|
103 |
|
104 /** |
|
105 * Service RangeForm Description |
|
106 * @param aMinValue The minimal value |
|
107 * @param aMaxValue The maximal value |
|
108 * @param aStepValue The step value |
|
109 * @return MTPTypeObjectPropDescRangeForm |
|
110 */ |
|
111 CMTPTypeObjectPropDesc* ServiceRangeFormDescriptionL( TUint16 aPropCode, |
|
112 TUint32 aMinValue, |
|
113 TUint32 aMaxValue, |
|
114 TUint32 aStepValue, |
|
115 TBool aIsReadOnly = EFalse ); |
|
116 |
|
117 //functions used by ServiceSpecificObjectPropertyL |
|
118 /** |
|
119 * Service number of channels |
|
120 * @return MTPTypeObjectPropDesc |
|
121 */ |
|
122 CMTPTypeObjectPropDesc* ServiceNumberOfChannelsL(); |
|
123 |
|
124 /** |
|
125 * Service code sample rate |
|
126 * @return MTPTypeObjectPropDesc |
|
127 */ |
|
128 CMTPTypeObjectPropDesc* ServiceCodeSampleRateL(); |
|
129 |
|
130 /** |
|
131 * Service description |
|
132 * @return MTPTypeObjectPropDesc |
|
133 */ |
|
134 CMTPTypeObjectPropDesc* ServiceDescriptionL(); |
|
135 |
|
136 /** |
|
137 * Service scan type description |
|
138 * @return MTPTypeObjectPropDesc |
|
139 */ |
|
140 CMTPTypeObjectPropDesc* ServiceScanTypeDescriptionL(); |
|
141 |
|
142 /** |
|
143 * Service encoding profile description |
|
144 * @return MTPTypeObjectPropDesc |
|
145 */ |
|
146 CMTPTypeObjectPropDesc* ServiceEncodingProfileDescriptionL(); |
|
147 |
|
148 /** |
|
149 * Service DRM status |
|
150 * @return MTPTypeObjectPropDesc |
|
151 */ |
|
152 CMTPTypeObjectPropDesc* ServiceDRMStatusL(); |
|
153 |
|
154 /** |
|
155 * Service OMADRM status |
|
156 * @return MTPTypeObjectPropDesc |
|
157 */ |
|
158 CMTPTypeObjectPropDesc* ServiceOMADRMStatusL(); |
|
159 |
|
160 |
|
161 }; |
|
162 |
|
163 #endif // CMEDIAMTPDATAPROVIDERGETFORMATCAPABILITIES_H |