|
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 the License "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 * Dialog for setting the gateway. It's used temporarily. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 // System includes |
|
23 #include <avkon.hrh> |
|
24 #include <eikdef.h> |
|
25 #include <eikenv.h> |
|
26 #include <eikedwin.h> |
|
27 #include <BrowserNG.rsg> |
|
28 |
|
29 // User includes |
|
30 #include "BrowserSettingsDlg.h" |
|
31 #include "Browser.hrh" |
|
32 #include "BrowserUtil.h" |
|
33 |
|
34 // ================= MEMBER FUNCTIONS ========================================= |
|
35 |
|
36 // --------------------------------------------------------- |
|
37 // CBrowserSettingsDlg::ConstructL() |
|
38 // --------------------------------------------------------- |
|
39 // |
|
40 void CBrowserSettingsDlg::ConstructL() |
|
41 { |
|
42 CAknDialog::ConstructL( R_BROWSER_SETTINGS_MENUBAR ); |
|
43 } |
|
44 |
|
45 // --------------------------------------------------------- |
|
46 // CBrowserSettingsDlg::NewL() |
|
47 // --------------------------------------------------------- |
|
48 // |
|
49 CBrowserSettingsDlg* CBrowserSettingsDlg::NewL() |
|
50 { |
|
51 CBrowserSettingsDlg* self = new (ELeave) CBrowserSettingsDlg; |
|
52 CleanupStack::PushL( self ); |
|
53 self->ConstructL(); |
|
54 CleanupStack::Pop(); |
|
55 return self; |
|
56 } |
|
57 |
|
58 // --------------------------------------------------------- |
|
59 // CBrowserSettingsDlg::OkToExitL |
|
60 // Good to know : EAknSoftkeyCancel is never called, because |
|
61 // EEikDialogFlagNotifyEsc flag is not set in the resource. |
|
62 // --------------------------------------------------------- |
|
63 // |
|
64 TBool CBrowserSettingsDlg::OkToExitL( TInt aButtonId ) |
|
65 { |
|
66 TBool result( EFalse ); |
|
67 |
|
68 if ( aButtonId == EAknSoftkeyOk ) |
|
69 { |
|
70 TBuf<256> buf; |
|
71 |
|
72 STATIC_CAST( CEikEdwin*, Control( |
|
73 EWmlControlSettingsEditGateway ) )->GetText( buf ); |
|
74 buf.ZeroTerminate(); |
|
75 |
|
76 result = ETrue; |
|
77 } |
|
78 return result; |
|
79 } |
|
80 |
|
81 // End of File |