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 priority implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CESMRPRIORITY_H |
|
20 #define CESMRPRIORITY_H |
|
21 |
|
22 #include <e32base.h> |
|
23 //<cmail> |
|
24 #include "esmrdef.h" |
|
25 //</cmail> |
|
26 |
|
27 class TResourceReader; |
|
28 |
|
29 NONSHARABLE_CLASS( CESMRPriority ): public CBase |
|
30 { |
|
31 public://Construction and Destruction |
|
32 /** |
|
33 * Creates new CESMRPriority object. Ownership |
|
34 * is transferred to caller. |
|
35 * @return Pointer to created object, |
|
36 */ |
|
37 CESMRPriority(); |
|
38 |
|
39 /** |
|
40 * C++ Destructor. |
|
41 */ |
|
42 ~CESMRPriority(); |
|
43 |
|
44 public://Interface |
|
45 /** |
|
46 * Loads values from resources. |
|
47 * |
|
48 * @param aReader resource reader object |
|
49 */ |
|
50 void ConstructFromResourceL( TResourceReader& aReader ); |
|
51 |
|
52 /** |
|
53 * Returns priority as text. |
|
54 * |
|
55 * @return priority as text |
|
56 */ |
|
57 const TDesC& Text(); |
|
58 |
|
59 /** |
|
60 * Returns priority id value. |
|
61 * |
|
62 * @return priority id value |
|
63 */ |
|
64 TFSCalenMRPriority Id(); |
|
65 |
|
66 private://Data |
|
67 /** |
|
68 * Own. Priority text value. |
|
69 */ |
|
70 HBufC* iText; |
|
71 |
|
72 /** |
|
73 * Priority id. |
|
74 */ |
|
75 TInt iId; |
|
76 }; |
|
77 |
|
78 #endif // CESMRPRIORITY_H |
|
79 |