|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Launches server settings view to edit or create |
|
15 * device management server profile. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef SERVERSETTINGSVIEW_H_ |
|
20 #define SERVERSETTINGSVIEW_H_ |
|
21 #include <hbinstance.h> |
|
22 #include <hbview.h> |
|
23 #include <hbaction.h> |
|
24 #include <hbdataform.h> |
|
25 #include <hbdataformmodel.h> |
|
26 #include <hbdataformmodelitem.h> |
|
27 #include <QStandardItemModel> |
|
28 #include <qmobilityglobal.h> |
|
29 |
|
30 class HbDataFormViewItem; |
|
31 class HbInputFilter; |
|
32 class SettingsDataFormCustomItem; |
|
33 class DmAdvancedView; |
|
34 class ServerSettingsView : public HbView |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public: |
|
39 explicit ServerSettingsView(HbMainWindow* mainWindow, DmAdvancedView* serversView , |
|
40 QString& header, QGraphicsItem* parent = 0); |
|
41 virtual ~ServerSettingsView(); |
|
42 void constructview(QString& header); |
|
43 int setProfileValues(QStringList& settingdatalist,bool& sessionmode, QStringList& apdata, int& currentap |
|
44 , int& port, bool& networkauth); |
|
45 void setBackButtonBehavior(); |
|
46 void makeviewItemsVisible(QString& heading); |
|
47 |
|
48 private: |
|
49 void hideInternetitems(); |
|
50 void showInternetitems(); |
|
51 |
|
52 public slots: |
|
53 void backButtonClicked(); |
|
54 void checkServerIdvalue(); |
|
55 void accessPointItemChanged(int apindex); |
|
56 |
|
57 public: |
|
58 HbMainWindow *iMainWindow; |
|
59 HbMenu* viewspecificmenu; |
|
60 HbAction* help; |
|
61 HbAction* exit; |
|
62 HbDataForm* form; |
|
63 HbDataFormModel* dataformmodel; |
|
64 HbDataFormModelItem* servername; |
|
65 HbDataFormModelItem* serverid; |
|
66 HbDataFormModelItem* sessionmode; |
|
67 HbDataFormModelItem *serverpwd; |
|
68 HbDataFormModelItem* accesspoint; |
|
69 HbDataFormModelItem* hostaddress; |
|
70 HbDataFormModelItem* port; |
|
71 HbDataFormModelItem* username; |
|
72 HbDataFormModelItem* userpwd; |
|
73 HbDataFormModelItem* networkauth; |
|
74 HbDataFormModelItem* networkusername; |
|
75 HbDataFormModelItem* networkpwd; |
|
76 HbAction* backaction; |
|
77 DmAdvancedView* serversView; |
|
78 SettingsDataFormCustomItem* customPrototype; |
|
79 int currentiapindex; |
|
80 QStringList apnameslist; |
|
81 bool backbehaviorset; |
|
82 }; |
|
83 |
|
84 #endif /* SERVERSETTINGSVIEW_H_ */ |