|
1 /* |
|
2 * Copyright (c) 2010 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 * Control Panel packet data AP advanced settings view implementation. |
|
16 * |
|
17 */ |
|
18 |
|
19 // System includes |
|
20 #include <HbDataForm> |
|
21 #include <HbDataFormModel> |
|
22 #include <cpsettingformitemdata.h> |
|
23 #include <cmconnectionmethod_shim.h> |
|
24 |
|
25 // User includes |
|
26 #include "cppacketdataapadvancedview.h" |
|
27 |
|
28 /*! |
|
29 \class CpPacketDataApAdvancedView |
|
30 \brief Implements the advanced settings view for packet data bearer |
|
31 access points. |
|
32 */ |
|
33 |
|
34 // External function prototypes |
|
35 |
|
36 // Local constants |
|
37 |
|
38 // ======== LOCAL FUNCTIONS ======== |
|
39 |
|
40 // ======== MEMBER FUNCTIONS ======== |
|
41 |
|
42 /*! |
|
43 Constructor. |
|
44 */ |
|
45 CpPacketDataApAdvancedView::CpPacketDataApAdvancedView( |
|
46 CmConnectionMethodShim *cmConnectionMethod, |
|
47 QGraphicsItem *parent) : |
|
48 CpBaseSettingView(0, parent), |
|
49 mForm(0), |
|
50 mModel(0), |
|
51 mCmConnectionMethod(cmConnectionMethod) |
|
52 { |
|
53 // Construct packet data AP settings UI |
|
54 mForm = settingForm(); |
|
55 if (mForm) { |
|
56 mModel = new HbDataFormModel(mForm); |
|
57 |
|
58 // Add advanced settings groups |
|
59 createAdvancedSettings(); |
|
60 |
|
61 mForm->setModel(mModel); |
|
62 } |
|
63 } |
|
64 |
|
65 /*! |
|
66 Destructor. |
|
67 */ |
|
68 CpPacketDataApAdvancedView::~CpPacketDataApAdvancedView() |
|
69 { |
|
70 } |
|
71 |
|
72 /*! |
|
73 Adds settings items to the model. |
|
74 */ |
|
75 void CpPacketDataApAdvancedView::createAdvancedSettings() |
|
76 { |
|
77 // TODO: Implement the advanced settings view. |
|
78 } |