equal
deleted
inserted
replaced
|
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: ESMR text item implementation, used to map text resource to id |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CESMRTEXTITEM_H |
|
20 #define CESMRTEXTITEM_H |
|
21 |
|
22 #include <e32base.h> |
|
23 //<cmail> |
|
24 #include "esmrdef.h" |
|
25 //</cmail> |
|
26 #include <e32std.h> |
|
27 |
|
28 class TResourceReader; |
|
29 |
|
30 /** |
|
31 * Wrapper class for descriptors for easier usage in fields |
|
32 */ |
|
33 NONSHARABLE_CLASS( CESMRTextItem ) : public CBase |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * Constructor. |
|
38 */ |
|
39 CESMRTextItem(); |
|
40 |
|
41 /** |
|
42 * Destructor. |
|
43 */ |
|
44 ~CESMRTextItem(); |
|
45 |
|
46 /** |
|
47 * Loads values from resources. |
|
48 * @param aReader resource reader |
|
49 */ |
|
50 void ConstructFromResourceL( TResourceReader& aReader ); |
|
51 |
|
52 public: |
|
53 /** |
|
54 * Returns text. |
|
55 * @return text |
|
56 */ |
|
57 TDesC& TextL(); |
|
58 |
|
59 /** |
|
60 * Returns id value. |
|
61 * @return id value |
|
62 */ |
|
63 TInt Id(); |
|
64 |
|
65 private: |
|
66 /** |
|
67 * Own. Text. |
|
68 */ |
|
69 HBufC* iText; |
|
70 |
|
71 /** |
|
72 * Id value. |
|
73 */ |
|
74 TInt iId; |
|
75 }; |
|
76 |
|
77 #endif // CESMRTEXTITEM_H |
|
78 |