|
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 * A dialog for adding new and editing old email over sms centre. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef SMUMEMAILSERVICECENTREITEMDIALOG_H |
|
22 #define SMUMEMAILSERVICECENTREITEMDIALOG_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <AknForm.h> // CAknDialog |
|
26 #include <eiklbo.h> // MEikListBoxObserver |
|
27 |
|
28 #include <bldvariant.hrh> |
|
29 |
|
30 // CONSTANTS |
|
31 |
|
32 // MACROS |
|
33 |
|
34 // DATA TYPES |
|
35 enum TSmumEmailServiceCentreItemIndex |
|
36 { |
|
37 ESmumEmailGateway, |
|
38 ESmumEmailServiceCentreNumber |
|
39 }; |
|
40 |
|
41 // FUNCTION PROTOTYPES |
|
42 |
|
43 // FORWARD DECLARATIONS |
|
44 class CMuiuSettingsArray; |
|
45 class CEikTextListBox; |
|
46 class CAknTitlePane; |
|
47 |
|
48 // CLASS DECLARATION |
|
49 |
|
50 /** |
|
51 * SMUM's main sms settings dialog. |
|
52 * @since 2.6 |
|
53 */ |
|
54 NONSHARABLE_CLASS( CSmumEmailServiceCentreDialog ): |
|
55 public CAknDialog, |
|
56 public MEikListBoxObserver |
|
57 { |
|
58 public: // Constructors and destructor |
|
59 |
|
60 /** |
|
61 * Constructor. |
|
62 */ |
|
63 CSmumEmailServiceCentreDialog( |
|
64 TDes& aGateway, |
|
65 TDes& aSC, |
|
66 const TBool& aModifiable, |
|
67 TInt& aExitCode, |
|
68 TBool aHelpFeatureSupported ); |
|
69 |
|
70 /** |
|
71 * Destructor. |
|
72 */ |
|
73 ~CSmumEmailServiceCentreDialog(); |
|
74 |
|
75 protected: // Functions from base classes |
|
76 |
|
77 /** |
|
78 * From CAknDialog |
|
79 */ |
|
80 void ProcessCommandL( TInt aCommandId ); |
|
81 |
|
82 /** |
|
83 * From CEikDialog |
|
84 */ |
|
85 void PreLayoutDynInitL(); |
|
86 |
|
87 /** |
|
88 * From CEikDialog |
|
89 */ |
|
90 TBool OkToExitL( TInt aButtonId ); |
|
91 |
|
92 /** |
|
93 * From MEikListBoxObserver |
|
94 */ |
|
95 void HandleListBoxEventL( |
|
96 CEikListBox* aListBox, |
|
97 TListBoxEvent aEventType); |
|
98 |
|
99 /** |
|
100 * From CAknDialog |
|
101 */ |
|
102 TKeyResponse OfferKeyEventL( |
|
103 const TKeyEvent& aKeyEvent, |
|
104 TEventCode aType ); |
|
105 |
|
106 /** |
|
107 * From CAknDialog |
|
108 */ |
|
109 void DynInitMenuPaneL( TInt aMenuId, CEikMenuPane* aMenuPane ); |
|
110 |
|
111 /** |
|
112 * From CCoeControl, returns help context |
|
113 */ |
|
114 void GetHelpContext( TCoeHelpContext& aContext ) const; |
|
115 |
|
116 private: // New functions |
|
117 |
|
118 /** |
|
119 * Updating the array with new values from dialog's list boxes. |
|
120 * @since 2.6 |
|
121 * @return ETrue if closing is ok |
|
122 */ |
|
123 TBool ClosingEmailSettingsItemDialogL(); |
|
124 |
|
125 /** |
|
126 * Prepare to open needed setting page |
|
127 * @since 2.6 |
|
128 * @param aEnterPressed |
|
129 */ |
|
130 void OpenSettingPageL( TBool aEnterPressed ); |
|
131 |
|
132 /** |
|
133 * Open settingpage for editing selected setting |
|
134 * @since 2.6 |
|
135 * @param aEnterPressed |
|
136 * @param aIndex position of selected setting |
|
137 */ |
|
138 void ModifySettingNumberL( TBool aEnterPressed, TInt aIndex ); |
|
139 |
|
140 /** |
|
141 * Launches help application |
|
142 * @since 2.6 |
|
143 */ |
|
144 void LaunchHelpL() const; |
|
145 |
|
146 /** |
|
147 * Shows an information note |
|
148 * @since 2.6 |
|
149 * @param aResource, resourse id used in note text |
|
150 */ |
|
151 void ShowInformationNoteL( TInt aResource ); |
|
152 |
|
153 private: // Data |
|
154 CMuiuSettingsArray* iSettingsArray; |
|
155 CEikTextListBox* iListBox; |
|
156 CAknTitlePane* iTitlePane; |
|
157 HBufC* iPreviousTitleText; |
|
158 TDes& iGateway; |
|
159 TDes& iSC; |
|
160 TBool iModifiable; |
|
161 TInt& iExitCode; |
|
162 TBool iHelpFeatureSupported; |
|
163 TBool iLaunchDialog; |
|
164 }; |
|
165 #endif // SMUMEMAILSERVICECENTREITEMDIALOG_H |
|
166 |
|
167 // End of File |