|
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 |
|
18 |
|
19 #ifndef CDESCRIPTIONUTILITY_H |
|
20 #define CDESCRIPTIONUTILITY_H |
|
21 |
|
22 class CMTPTypeObjectPropDesc; |
|
23 class CMTPTypeInterdependentPropDesc; |
|
24 class MMmMtpDpConfig; |
|
25 |
|
26 class CDescriptionUtility : public CBase |
|
27 { |
|
28 protected: |
|
29 /** |
|
30 * |
|
31 */ |
|
32 IMPORT_C CDescriptionUtility(); |
|
33 |
|
34 public: |
|
35 /** |
|
36 * |
|
37 */ |
|
38 IMPORT_C virtual ~CDescriptionUtility(); |
|
39 |
|
40 public: |
|
41 /** |
|
42 * |
|
43 */ |
|
44 CMTPTypeObjectPropDesc* NewCommonObjectPropertyL( TUint16 aPropCode ); |
|
45 |
|
46 /** |
|
47 * New RangeForm Description |
|
48 * @param aMinValue The minimal value |
|
49 * @param aMaxValue The maximal value |
|
50 * @param aStepValue The step value |
|
51 * @return CMTPTypeObjectPropDesc |
|
52 */ |
|
53 IMPORT_C CMTPTypeObjectPropDesc* NewRangeFormDescriptionL( TUint16 aPropCode, |
|
54 TUint32 aMinValue, |
|
55 TUint32 aMaxValue, |
|
56 TUint32 aStepValue, |
|
57 TBool aIsReadOnly = EFalse ); |
|
58 |
|
59 /** |
|
60 * Get group code |
|
61 * @param aPropCode Specify the property code of which the group code needed |
|
62 * @return Group code of specified property |
|
63 */ |
|
64 TUint32 GetGroupCode( TUint32 aPropCode ); |
|
65 |
|
66 /** |
|
67 * |
|
68 */ |
|
69 virtual CMTPTypeInterdependentPropDesc* NewInterdepentPropDescL( MMmMtpDpConfig& aDpConfig, TUint aFormatCode ) = 0; |
|
70 |
|
71 /** |
|
72 * |
|
73 */ |
|
74 virtual CMTPTypeObjectPropDesc* NewSpecificPropDescL( TUint aFormatCode, TUint16 aPropCode ) = 0; |
|
75 |
|
76 private: |
|
77 /** |
|
78 * New a property description of protection status |
|
79 * @return CMTPTypeObjectPropDesc |
|
80 */ |
|
81 CMTPTypeObjectPropDesc* NewProtectionStatusPropDescL(); |
|
82 |
|
83 /** |
|
84 * Get property description of file name |
|
85 * @return CMTPTypeObjectPropDesc |
|
86 */ |
|
87 CMTPTypeObjectPropDesc* NewFileNamePropDescL(); |
|
88 |
|
89 /** |
|
90 * New a property description of nonconsumable |
|
91 * @return CMTPTypeObjectPropDesc |
|
92 */ |
|
93 CMTPTypeObjectPropDesc* NewNonConsumablePropDescL(); |
|
94 |
|
95 }; |
|
96 |
|
97 #endif // CDESCRIPTIONUTILITY_H |