|
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: Media dp specific property description construction utility. |
|
15 * Used by all request processors which related to property description |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef CMEDIAMTPDATAPROVIDERDESCRIPTIONUTILITY_H |
|
20 #define CMEDIAMTPDATAPROVIDERDESCRIPTIONUTILITY_H |
|
21 |
|
22 #include "cdescriptionutility.h" |
|
23 |
|
24 class CMTPTypeInterdependentPropDesc; |
|
25 class CMTPTypeObjectPropDesc; |
|
26 |
|
27 class CMediaMtpDataProviderDescriptionUtility : public CDescriptionUtility |
|
28 { |
|
29 public: |
|
30 static CMediaMtpDataProviderDescriptionUtility* NewL(); |
|
31 |
|
32 private: |
|
33 CMediaMtpDataProviderDescriptionUtility(); |
|
34 |
|
35 public: |
|
36 /** |
|
37 * Construct media dp specific interdependent property description. |
|
38 * according to assigned format code. |
|
39 * @param aFormatCode |
|
40 * @return Interdependent property description dataset. |
|
41 */ |
|
42 CMTPTypeInterdependentPropDesc* NewInterdepentPropDescL( MMmMtpDpConfig& aDpConfig, TUint aFormatCode ); |
|
43 |
|
44 /** |
|
45 * Construct media dp specific property description |
|
46 * according to assigned format code and property code. |
|
47 * @param aFormatCode |
|
48 * @param aPropCode |
|
49 * @return Property description dataset. |
|
50 */ |
|
51 CMTPTypeObjectPropDesc* NewSpecificPropDescL( TUint aFormatCode, TUint16 aPropCode ); |
|
52 |
|
53 private: |
|
54 /** |
|
55 * Construct audio wave codec property description. |
|
56 * @param aFormatCode |
|
57 * @return Property description dataset of audio wave codec. |
|
58 */ |
|
59 CMTPTypeObjectPropDesc* NewAudioWaveCodecPropDescL( TUint aFormatCode ); |
|
60 |
|
61 /** |
|
62 * Construct audio bitrate property description. |
|
63 * @param aFormatCode, The format code |
|
64 * @return Property description dataset of audio bitrate. |
|
65 */ |
|
66 CMTPTypeObjectPropDesc* NewAudioBitratePropDescL( TUint aFormatCode ); |
|
67 |
|
68 /** |
|
69 * Construct property description of video fourCC codec. |
|
70 * @param aFormatCode, The format code |
|
71 * @return Property description dataset of video fourCC codec. |
|
72 */ |
|
73 CMTPTypeObjectPropDesc* NewVideoFourCCCodecPropDescL( TUint aFormatCode ); |
|
74 |
|
75 /** |
|
76 * Construct property description of VideoBitrate. |
|
77 * @param aFormatCode, The format code |
|
78 * @return Property description dataset of video bitrate. |
|
79 */ |
|
80 CMTPTypeObjectPropDesc* NewVideoBitratePropDescL( TUint aFormatCode ); |
|
81 |
|
82 /** |
|
83 * Construct property description of number of channels. |
|
84 * @return Property description dataset of number of channels. |
|
85 */ |
|
86 CMTPTypeObjectPropDesc* NewNumberOfChannelsPropDescL(); |
|
87 |
|
88 /** |
|
89 * Construct property description of code sample rate. |
|
90 * @return Property description dataset of sample rate. |
|
91 */ |
|
92 CMTPTypeObjectPropDesc* NewCodeSampleRatePropDescL(); |
|
93 |
|
94 /** |
|
95 * Construct property description of description. |
|
96 * @return Property description dataset of description. |
|
97 */ |
|
98 CMTPTypeObjectPropDesc* NewDescriptionPropDescL(); |
|
99 |
|
100 /** |
|
101 * Construct property description of scan type description. |
|
102 * @return Property description dataset of scan type description. |
|
103 */ |
|
104 CMTPTypeObjectPropDesc* NewScanTypeDescriptionPropDescL(); |
|
105 |
|
106 /** |
|
107 * Construct property description of encoding profile description. |
|
108 * @return Property description dataset of encoding profile description. |
|
109 */ |
|
110 CMTPTypeObjectPropDesc* NewEncodingProfileDescriptionPropDescL(); |
|
111 |
|
112 /** |
|
113 * Construct property description of DRM status. |
|
114 * @return Property description dataset of drm status. |
|
115 */ |
|
116 CMTPTypeObjectPropDesc* NewDRMStatusPropDescL(); |
|
117 |
|
118 /** |
|
119 * Construct property description of OMADRM status. |
|
120 * @return Property description dataset of oma drm status. |
|
121 */ |
|
122 CMTPTypeObjectPropDesc* NewOMADRMStatusPropDescL(); |
|
123 |
|
124 }; |
|
125 |
|
126 #endif // CMEDIAMTPDATAPROVIDERDESCRIPTIONUTILITY_H |