|
1 /* |
|
2 * Copyright (c) 2002-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: Edit before send list pop-up query |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CESMRGLOBALNOTE_H |
|
20 #define CESMRGLOBALNOTE_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <AknNotifyStd.h> |
|
25 //<cmail> |
|
26 #include "esmrdef.h" |
|
27 //</cmail> |
|
28 |
|
29 // CLASS DECLARATION |
|
30 class CEikonEnv; |
|
31 /** |
|
32 * CESMRGlobalNote encapsulates Yes/No confirmation query |
|
33 * query for ES MR Utils usage. |
|
34 */ |
|
35 NONSHARABLE_CLASS( CESMRGlobalNote ) : public CBase |
|
36 { |
|
37 public: |
|
38 enum TESMGlobalNoteType |
|
39 { |
|
40 EESMRCorruptedMR = 0, |
|
41 EESMREndsBeforeStarts, |
|
42 EESMRCalenLaterDate, |
|
43 EESMREntryEndEarlierThanItStart, |
|
44 EESMRAlarmAlreadyPassed, |
|
45 EESMRDiffMoreThanMonth, |
|
46 EESMRRepeatEndEarlierThanItStart, |
|
47 EESMREntrySaved, |
|
48 EESMRTodoEntrySaved, |
|
49 EESMRRepeatDifferentStartAndEndDate, |
|
50 EESMRRepeatReSchedule, |
|
51 EESMRCannotDisplayMuchMore |
|
52 }; |
|
53 public: |
|
54 /** |
|
55 * Two-phased constructor. |
|
56 */ |
|
57 IMPORT_C static CESMRGlobalNote* NewL( |
|
58 TESMGlobalNoteType aType); |
|
59 |
|
60 /** |
|
61 * Destructor. |
|
62 */ |
|
63 ~CESMRGlobalNote(); |
|
64 |
|
65 private: // Constructors |
|
66 |
|
67 CESMRGlobalNote( TESMGlobalNoteType aType ); |
|
68 void ConstructL(); |
|
69 TAknGlobalNoteType NoteType(); |
|
70 HBufC* NoteTextLC(); |
|
71 |
|
72 public: // Implementation |
|
73 |
|
74 /** |
|
75 * Executes the dialog and destroys itself. |
|
76 */ |
|
77 void ExecuteLD(); |
|
78 |
|
79 /** |
|
80 * Static version of ExecuteLD. |
|
81 * @param aType The type of confirmation query. |
|
82 */ |
|
83 IMPORT_C static void ExecuteL( |
|
84 TESMGlobalNoteType aType ); |
|
85 |
|
86 private: // Data |
|
87 /// Own: Attendee status |
|
88 TESMGlobalNoteType iType; |
|
89 /// Own: Resource offset; |
|
90 TInt iResourceOffset; |
|
91 /// Ref: |
|
92 CEikonEnv* iEnv; |
|
93 |
|
94 }; |
|
95 |
|
96 #endif // CESMRGLOBALNOTE_H |
|
97 |
|
98 // End of File |