|
1 /* |
|
2 * Copyright (c) 2007-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: Definition for mrui list queries |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CESMRRECURRENCE_H |
|
19 #define CESMRRECURRENCE_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <barsread.h> // resource reader |
|
23 //<cmail> |
|
24 #include "esmrdef.h" |
|
25 //</cmail> |
|
26 |
|
27 /** |
|
28 * Helper class for recurrence texts |
|
29 */ |
|
30 NONSHARABLE_CLASS( CESMRRecurrence ) : public CBase |
|
31 { |
|
32 public: |
|
33 /** |
|
34 * Constructor. |
|
35 */ |
|
36 IMPORT_C CESMRRecurrence(); |
|
37 |
|
38 /** |
|
39 * Destructor. |
|
40 */ |
|
41 IMPORT_C ~CESMRRecurrence(); |
|
42 |
|
43 /** |
|
44 * Constructs the recurrence text from resource. |
|
45 * |
|
46 * @param aEnv - Control environment to be used |
|
47 * @param aReader - resource reader for reading the correct text |
|
48 */ |
|
49 IMPORT_C void ConstructFromResourceL( |
|
50 CCoeEnv* aEnv, TResourceReader& aReader ); |
|
51 |
|
52 /** |
|
53 * Get the type of recurrence |
|
54 * |
|
55 * @return type of recurrence |
|
56 */ |
|
57 IMPORT_C TESMRRecurrenceValue RecurrenceValue(); |
|
58 |
|
59 /** |
|
60 * Get the descriptor text for the type of recurrence |
|
61 * |
|
62 * @return descriptor text for the type of recurrence |
|
63 */ |
|
64 IMPORT_C HBufC& RecurrenceText(); |
|
65 |
|
66 private: |
|
67 //Own: ID of the wanted recurrence text |
|
68 TESMRRecurrenceValue iId; |
|
69 //Own: Descriptor for the actual text |
|
70 HBufC* iTxt; |
|
71 }; |
|
72 #endif |