1 /* |
|
2 * Copyright (c) 2006 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: Application Setting UI |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "cmapplicationsettingsui.h" |
|
19 #include <cmmanager.h> |
|
20 #include "cmconnsettingsuiimpl.h" |
|
21 #include "cmmanager.hrh" |
|
22 |
|
23 using namespace CMManager; |
|
24 //----------------------------------------------------------------------------- |
|
25 // CCmApplicationSettingsUi::NewL() |
|
26 //----------------------------------------------------------------------------- |
|
27 // |
|
28 EXPORT_C CCmApplicationSettingsUi* CCmApplicationSettingsUi::NewL() |
|
29 { |
|
30 CCmApplicationSettingsUi* self = new (ELeave) CCmApplicationSettingsUi(); |
|
31 CleanupStack::PushL( self ); |
|
32 self->ConstructL(); |
|
33 CleanupStack::Pop( self ); // self |
|
34 return self; |
|
35 } |
|
36 |
|
37 //----------------------------------------------------------------------------- |
|
38 // CCmApplicationSettingsUi::NewLC() |
|
39 //----------------------------------------------------------------------------- |
|
40 // |
|
41 EXPORT_C CCmApplicationSettingsUi* CCmApplicationSettingsUi::NewLC() |
|
42 { |
|
43 CCmApplicationSettingsUi* self = new (ELeave) CCmApplicationSettingsUi(); |
|
44 CleanupStack::PushL( self ); |
|
45 self->ConstructL(); |
|
46 return self; |
|
47 } |
|
48 |
|
49 //----------------------------------------------------------------------------- |
|
50 // CCmApplicationSettingsUi::CCmApplicationSettingsUi() |
|
51 //----------------------------------------------------------------------------- |
|
52 // |
|
53 CCmApplicationSettingsUi::CCmApplicationSettingsUi() |
|
54 { |
|
55 } |
|
56 |
|
57 //----------------------------------------------------------------------------- |
|
58 // CCmApplicationSettingsUi::~CCmApplicationSettingsUi() |
|
59 //----------------------------------------------------------------------------- |
|
60 // |
|
61 EXPORT_C CCmApplicationSettingsUi::~CCmApplicationSettingsUi() |
|
62 { |
|
63 delete iImpl; |
|
64 } |
|
65 |
|
66 //----------------------------------------------------------------------------- |
|
67 // CCmApplicationSettingsUi::ConstructL() |
|
68 //----------------------------------------------------------------------------- |
|
69 // |
|
70 void CCmApplicationSettingsUi::ConstructL() |
|
71 { |
|
72 iImpl = CCmConnSettingsUiImpl::NewWithoutTablesL(); |
|
73 } |
|
74 |
|
75 //----------------------------------------------------------------------------- |
|
76 // CCmApplicationSettingsUi::RunSettingsL() |
|
77 //----------------------------------------------------------------------------- |
|
78 // |
|
79 EXPORT_C TBool CCmApplicationSettingsUi::RunApplicationSettingsL( |
|
80 TCmSettingSelection& aSelection ) |
|
81 { |
|
82 TBearerFilterArray aFilterArray; |
|
83 return iImpl->RunApplicationSettingsL( aSelection, |
|
84 EShowDefaultConnection | |
|
85 EShowDestinations | |
|
86 EShowConnectionMethods, |
|
87 aFilterArray ); |
|
88 } |
|
89 |
|
90 //----------------------------------------------------------------------------- |
|
91 // CCmApplicationSettingsUi::RunSettingsL() |
|
92 //----------------------------------------------------------------------------- |
|
93 // |
|
94 EXPORT_C TBool CCmApplicationSettingsUi::RunApplicationSettingsL( |
|
95 TCmSettingSelection& aSelection, |
|
96 TUint aListItems, |
|
97 TBearerFilterArray& aFilterArray) |
|
98 { |
|
99 return iImpl->RunApplicationSettingsL( aSelection, |
|
100 aListItems, |
|
101 aFilterArray ); |
|
102 } |
|