|
1 /* |
|
2 * Copyright (c) 2003 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 the License "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: Contains mapping of string values to internal tokens |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef TCSSPROPERTYTABLE_H |
|
20 #define TCSSPROPERTYTABLE_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include "nw_lmgr_propertylist.h" |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // MACROS |
|
29 struct TCSSPropertyTablePropEntry |
|
30 { |
|
31 const TText16* strName; |
|
32 NW_LMgr_PropertyName_t tokenName; |
|
33 TUint32 type; |
|
34 }; |
|
35 |
|
36 struct TCSSPropertyTablePropValEntry |
|
37 { |
|
38 const TText16 *strVal; |
|
39 NW_LMgr_PropertyValueToken_t tokenVal; |
|
40 }; |
|
41 |
|
42 // FUNCTION PROTOTYPES |
|
43 |
|
44 // FORWARD DECLARATIONS |
|
45 |
|
46 // CLASS DECLARATION |
|
47 |
|
48 /** |
|
49 * This class Contains mapping of string values to internal tokens |
|
50 * |
|
51 * @lib css.lib |
|
52 * @since 2.1 |
|
53 */ |
|
54 class TCSSPropertyTable |
|
55 { |
|
56 public: |
|
57 |
|
58 static const TCSSPropertyTablePropEntry* GetPropertyEntry(const TText16* aStrName); |
|
59 |
|
60 static TBool GetPropertyValToken(const TText16* aVal, NW_LMgr_PropertyValueToken_t *aToken); |
|
61 |
|
62 static const TCSSPropertyTablePropEntry* GetPropEntryByToken (NW_LMgr_PropertyName_t aTokenName); |
|
63 |
|
64 static const TCSSPropertyTablePropValEntry* GetPropValEntryByToken (NW_LMgr_PropertyValueToken_t aTokenVal); |
|
65 |
|
66 static const TText16* GetPropValType(TUint8 aValueType); |
|
67 |
|
68 private: |
|
69 |
|
70 |
|
71 }; |
|
72 |
|
73 #endif /* TCSSPROPERTYTABLE_H */ |