33
|
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 Advanced view
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef DMADVANCEDVIEW_H
|
|
19 |
#define DMADVANCEDVIEW_H
|
|
20 |
|
|
21 |
#include <hbwidget.h>
|
|
22 |
#include <QList>
|
|
23 |
#include <hbinstance.h>
|
|
24 |
#include <hbview.h>
|
|
25 |
#include <hbaction.h>
|
|
26 |
#include <hbgroupbox.h>
|
|
27 |
#include <hblistview.h>
|
|
28 |
#include <hbpushbutton.h>
|
|
29 |
#include <hbmenu.h>
|
|
30 |
#include <hblabel.h>
|
|
31 |
#include <hbdocumentloader.h>
|
|
32 |
#include <hblistviewitem.h>
|
36
|
33 |
#include <hbanchorlayout.h>
|
33
|
34 |
#include <hbicon.h>
|
|
35 |
#include <QStandardItem>
|
36
|
36 |
#include <qtranslator.h>
|
33
|
37 |
#include <QSortFilterProxyModel>
|
|
38 |
#include <QModelIndex>
|
|
39 |
#include <wlansdkpskeys.h>
|
|
40 |
#include <btengdomaincrkeys.h>
|
|
41 |
#include <QStandardItemModel>
|
|
42 |
#include <centralrepository.h>
|
|
43 |
#include <hbglobal.h>
|
|
44 |
#include <etelpckt.h>
|
36
|
45 |
#include <etel3rdparty.h>
|
33
|
46 |
#include <etelmm.h>
|
|
47 |
#include <etel.h>
|
43
|
48 |
#include <sysutil.h>
|
|
49 |
#include <sysversioninfo.h>
|
|
50 |
#include <swi/sisregistrypackage.h>
|
|
51 |
#include <swi/sisregistryentry.h>
|
|
52 |
#include <swi/sisregistrysession.h>
|
|
53 |
#include "nsmldmsyncprivatecrkeys.h"
|
33
|
54 |
#include "serversettingsview.h"
|
|
55 |
#include "dminforetrieval.h"
|
|
56 |
#define DOCML_FILE_NAME ":xml/serversview.docml"
|
|
57 |
#define VIEW_NAME "view"
|
|
58 |
#define LIST_NAME "listView"
|
|
59 |
#define GROUP "groupBox"
|
|
60 |
#define BANNER_NAME "banner"
|
|
61 |
#define NEWSERVERBUTTON "pushButton"
|
|
62 |
#define WIDGET "content"
|
|
63 |
#define LABEL "label"
|
|
64 |
#define LISTOTHERDETAILS "listView_1"
|
|
65 |
#define OTHERDETAILSGROUP "groupBox_1"
|
|
66 |
#define LANDSCAPE "landscape"
|
|
67 |
#define PORTRAIT "portrait"
|
|
68 |
|
|
69 |
const TInt KWlanMacAddrLength = 100;
|
|
70 |
const TInt KBTAddrLength = 64;
|
|
71 |
class DmAdvancedView : public HbView
|
|
72 |
{
|
|
73 |
Q_OBJECT
|
|
74 |
|
|
75 |
public:
|
|
76 |
explicit DmAdvancedView(HbMainWindow *mainWindow, HbView *mainView, QGraphicsItem *parent=0);
|
|
77 |
virtual ~DmAdvancedView();
|
|
78 |
bool displayItems();
|
|
79 |
void saveProfile(QStringList& itemdata, bool& sessmode, QString& currap,unsigned int& portnum, bool& nauth );
|
|
80 |
bool checkServerId(QString& serverid);
|
|
81 |
void setBackBehavior();
|
|
82 |
void syncCompleted(int jobstatus);
|
|
83 |
void PacketService(TInt val, QString& string);
|
|
84 |
void NetworkBand(RMobilePhone::TMobilePhoneNetworkBandInfo val, QString& string);
|
|
85 |
void NetworkCiphering(RMobilePhone::TMobilePhoneNetworkSecurity val, QString& string);
|
|
86 |
void mainCalltoUpdateView();
|
|
87 |
|
|
88 |
private:
|
|
89 |
void updateEarlierdefaultProfileIcon();
|
|
90 |
void updateListview();
|
|
91 |
|
|
92 |
public slots:
|
|
93 |
void handleLongPress(HbAbstractViewItem* item,QPointF coOrdinates);
|
|
94 |
void handleClicked(QModelIndex index);
|
|
95 |
void createNewProfile();
|
|
96 |
void otherDetailsGroupClicked(bool state);
|
|
97 |
void serversListGroupClicked(bool state);
|
|
98 |
void reLayout(Qt::Orientation layoutType);
|
|
99 |
void backButtonClicked();
|
38
|
100 |
void defaultMenuItemSelected();
|
|
101 |
void deleteMenuItemSelected();
|
|
102 |
void connectMenuItemSelected();
|
33
|
103 |
|
|
104 |
private:
|
|
105 |
HbGroupBox *serversListGroup;
|
|
106 |
HbGroupBox *otherDetailsGroup;
|
|
107 |
HbListView* list;
|
|
108 |
HbListView* otherdetailslist;
|
|
109 |
HbLabel *label;
|
|
110 |
HbMenu* viewspecificmenu;
|
|
111 |
HbAction* help;
|
|
112 |
HbAction* exit;
|
|
113 |
HbWidget* viewwidget;
|
|
114 |
HbDocumentLoader *docmlLoader;
|
|
115 |
HbPushButton* newserverprofile;
|
|
116 |
int count;
|
|
117 |
QTranslator *translator;
|
|
118 |
DmInfo* dminfo;
|
|
119 |
QStandardItemModel *model;
|
|
120 |
QStandardItemModel *otherdetailsmodel;
|
|
121 |
int currentdefaultprofile;
|
|
122 |
bool connectionRequested;
|
|
123 |
bool backbehaviorset;
|
|
124 |
QIcon bluetooth;
|
|
125 |
QIcon internet;
|
|
126 |
QIcon defaultprofileicon;
|
|
127 |
HbMainWindow *iMainWindow;
|
|
128 |
ServerSettingsView* serverSetView;
|
|
129 |
HbAnchorLayout* layout;
|
|
130 |
int currentview;
|
|
131 |
HbView* iMainView;
|
|
132 |
HbAction* backaction;
|
|
133 |
RMobilePhone imobPhone;
|
|
134 |
RTelServer iServer;
|
|
135 |
RTelServer::TPhoneInfo info;
|
|
136 |
RMobilePhone::TMobilePhoneNetworkSecurity idispSecurity;
|
38
|
137 |
int currentselecteditem;
|
|
138 |
//This item should not be deleted,it just refer an item and deletion
|
|
139 |
//will be taken care by List view
|
|
140 |
QStandardItem *modelItem;
|
33
|
141 |
};
|
|
142 |
|
|
143 |
#endif // DMADVANCEDVIEW_H
|
|
144 |
|