|
1 /* |
|
2 * Copyright (c) 2007 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: THIS FILE IS NOT INCLUDED INTO ECLIPSE CVS DELIVERY |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <w32std.h> |
|
20 #include <ApSettingsHandlerUI.h> |
|
21 #include "swtbrowserapsettingshandler.h" |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // Constructor |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 CSwtBrowserApSettingsHandler::CSwtBrowserApSettingsHandler() |
|
28 { |
|
29 } |
|
30 |
|
31 |
|
32 void CSwtBrowserApSettingsHandler::ConstructL() |
|
33 { |
|
34 CApSettingsHandler* settingsHandler = |
|
35 CApSettingsHandler::NewLC(ETrue, |
|
36 EApSettingsSelListIsPopUp, |
|
37 EApSettingsSelMenuSelectNormal, |
|
38 KEApIspTypeAll, |
|
39 EApBearerTypeAll, |
|
40 KEApSortNameAscending, |
|
41 EIPv4 | EIPv6); |
|
42 CleanupStack::Pop(settingsHandler); |
|
43 iSettingsHandler = settingsHandler; |
|
44 } |
|
45 |
|
46 EXPORT_C CSwtBrowserApSettingsHandler* CSwtBrowserApSettingsHandler::NewLC() |
|
47 { |
|
48 CSwtBrowserApSettingsHandler* self |
|
49 = new(ELeave) CSwtBrowserApSettingsHandler(); |
|
50 CleanupStack::PushL(self); |
|
51 self->ConstructL(); |
|
52 CleanupStack::Pop(self); |
|
53 return self; |
|
54 } |
|
55 |
|
56 CSwtBrowserApSettingsHandler::~CSwtBrowserApSettingsHandler() |
|
57 { |
|
58 delete iSettingsHandler; |
|
59 } |
|
60 |
|
61 EXPORT_C TInt CSwtBrowserApSettingsHandler::RunSettingsL(TUint32 aHighLight, TUint32& aSelected) |
|
62 { |
|
63 ASSERT(iSettingsHandler); |
|
64 return iSettingsHandler->RunSettingsL(aHighLight, aSelected); |
|
65 } |
|
66 |
|
67 |