|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * Defines a dialog for view/edit sending options. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef MSGMAILOPTIONSDLG_H |
|
21 #define MSGMAILOPTIONSDLG_H |
|
22 |
|
23 // INCLUDES |
|
24 |
|
25 #include <AknForm.h> // for CAknDialog |
|
26 #include <e32std.h> |
|
27 #include <eiklbo.h> // for MEikListBoxObserver |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CMsgMailEditorDocument; |
|
31 class CMsgEditorView; |
|
32 class CAknTitlePane; |
|
33 class TCoeHelpContext; |
|
34 //class TListBoxEvent; |
|
35 class CMailEditorSettingList; |
|
36 |
|
37 // CLASS DECLARATION |
|
38 |
|
39 /** |
|
40 * Dialog which is used to view or edit current send options. |
|
41 * |
|
42 */ |
|
43 class CMsgMailOptionsDlg : public CAknDialog, public MEikListBoxObserver |
|
44 { |
|
45 public: // New functions |
|
46 /* |
|
47 * Creates CMsgMailOptionsDlg |
|
48 * @param aDocument reference to the document. (Leaves if NULL) |
|
49 * @param aHelpSupported ETrue if supports Help |
|
50 * Note: After creation call ExecuteLD() to launch the dialog |
|
51 */ |
|
52 static CMsgMailOptionsDlg* NewL(CMsgMailEditorDocument* aDocument, |
|
53 TBool aHelpSupported); |
|
54 |
|
55 /** |
|
56 * From MEikListBoxObserver |
|
57 */ |
|
58 virtual void HandleListBoxEventL(CEikListBox* aListBox, |
|
59 TListBoxEvent aEventType); |
|
60 |
|
61 protected: // Constructors and destructor |
|
62 |
|
63 CMsgMailOptionsDlg(); |
|
64 |
|
65 /** |
|
66 * ConstructL() |
|
67 */ |
|
68 void ConstructL(); |
|
69 |
|
70 ~CMsgMailOptionsDlg(); |
|
71 |
|
72 |
|
73 protected: // Functions from base classes |
|
74 |
|
75 /** |
|
76 * From CAknDialog |
|
77 */ |
|
78 TBool OkToExitL(TInt aButtonId); |
|
79 void ProcessCommandL(TInt aCommandId); |
|
80 TKeyResponse OfferKeyEventL( |
|
81 const TKeyEvent& aKeyEvent, |
|
82 TEventCode aType ); |
|
83 void DynInitMenuPaneL(TInt aMenuId, CEikMenuPane* aMenuPane); |
|
84 /** |
|
85 * From CEikDialog |
|
86 */ |
|
87 void PreLayoutDynInitL(); |
|
88 |
|
89 |
|
90 void SizeChanged(); |
|
91 |
|
92 /** |
|
93 * From CCoeControl |
|
94 */ |
|
95 void HandleResourceChange( TInt aType ); |
|
96 |
|
97 |
|
98 protected: //Data |
|
99 /** |
|
100 * ref: document object. |
|
101 */ |
|
102 CMsgMailEditorDocument* iDocument; |
|
103 /** |
|
104 * Own: Setting list |
|
105 */ |
|
106 CMailEditorSettingList* iSettingList; |
|
107 |
|
108 private: //Data |
|
109 |
|
110 /** |
|
111 * ref: Title pane. |
|
112 */ |
|
113 CAknTitlePane* iTitlePane; |
|
114 |
|
115 /** |
|
116 * ref: Saved title pane text |
|
117 */ |
|
118 HBufC* iOldTitlePaneText; |
|
119 |
|
120 /** |
|
121 * Help feature flag |
|
122 */ |
|
123 TBool iHelpSupported; |
|
124 }; |
|
125 |
|
126 #endif // MSGMAILOPTIONSDLG_H |
|
127 |
|
128 // End of File |