65 #define OTHERDETAILSGROUP "groupBox_1" |
65 #define OTHERDETAILSGROUP "groupBox_1" |
66 #define LANDSCAPE "landscape" |
66 #define LANDSCAPE "landscape" |
67 #define PORTRAIT "portrait" |
67 #define PORTRAIT "portrait" |
68 |
68 |
69 const TInt KWlanMacAddrLength = 100; |
69 const TInt KWlanMacAddrLength = 100; |
70 const TInt KBTAddrLength = 64; |
70 const TInt KBTAddrLength = 64; |
|
71 class DMFotaView; |
71 class DmAdvancedView : public HbView |
72 class DmAdvancedView : public HbView |
72 { |
73 { |
73 Q_OBJECT |
74 Q_OBJECT |
74 |
75 |
75 public: |
76 public: |
76 explicit DmAdvancedView(HbMainWindow *mainWindow, HbView *mainView, QGraphicsItem *parent=0); |
77 explicit DmAdvancedView(HbMainWindow *mainWindow, DMFotaView *mainView,DmInfo *info=NULL, QGraphicsItem *parent=0); |
77 virtual ~DmAdvancedView(); |
78 virtual ~DmAdvancedView(); |
78 bool displayItems(); |
79 bool displayItems(); |
79 void saveProfile(QStringList& itemdata, bool& sessmode, QString& currap,unsigned int& portnum, bool& nauth ); |
80 void saveProfile(QStringList& itemdata, bool& sessmode, QString& currap,unsigned int& portnum, bool& nauth ); |
80 bool checkServerId(QString& serverid); |
81 bool checkServerId(QString& serverid); |
81 void setBackBehavior(); |
82 void setBackBehavior(); |
82 void syncCompleted(int jobstatus); |
83 void syncCompleted(int jobstatus); |
83 void PacketService(TInt val, QString& string); |
84 void PacketService(TInt val, QString& string); |
84 void NetworkBand(RMobilePhone::TMobilePhoneNetworkBandInfo val, QString& string); |
85 void NetworkBand(RMobilePhone::TMobilePhoneNetworkBandInfo val, QString& string); |
85 void NetworkCiphering(RMobilePhone::TMobilePhoneNetworkSecurity val, QString& string); |
86 void NetworkCiphering(RMobilePhone::TMobilePhoneNetworkSecurity val, QString& string); |
86 void mainCalltoUpdateView(); |
87 void mainCalltoUpdateView(); |
87 |
88 void addVersionInfo(); |
|
89 void addOtherDetails(); |
88 private: |
90 private: |
89 void updateEarlierdefaultProfileIcon(); |
91 void updateEarlierdefaultProfileIcon(); |
90 void updateListview(); |
92 void updateListview(); |
91 |
93 |
92 public slots: |
94 public slots: |
113 HbWidget* viewwidget; |
115 HbWidget* viewwidget; |
114 HbDocumentLoader *docmlLoader; |
116 HbDocumentLoader *docmlLoader; |
115 HbPushButton* newserverprofile; |
117 HbPushButton* newserverprofile; |
116 int count; |
118 int count; |
117 QTranslator *translator; |
119 QTranslator *translator; |
118 DmInfo* dminfo; |
|
119 QStandardItemModel *model; |
120 QStandardItemModel *model; |
120 QStandardItemModel *otherdetailsmodel; |
121 QStandardItemModel *m_otherdetailsmodel; |
121 int currentdefaultprofile; |
122 int currentdefaultprofile; |
122 bool connectionRequested; |
123 bool connectionRequested; |
123 bool backbehaviorset; |
124 bool backbehaviorset; |
124 QIcon bluetooth; |
125 QIcon bluetooth; |
125 QIcon internet; |
126 QIcon internet; |
126 QIcon defaultprofileicon; |
127 QIcon defaultprofileicon; |
127 HbMainWindow *iMainWindow; |
128 HbMainWindow *iMainWindow; |
128 ServerSettingsView* serverSetView; |
129 ServerSettingsView* serverSetView; |
129 HbAnchorLayout* layout; |
130 HbAnchorLayout* layout; |
130 int currentview; |
131 int currentview; |
131 HbView* iMainView; |
132 //HbView* iMainView; |
|
133 DMFotaView* iMainView; |
132 HbAction* backaction; |
134 HbAction* backaction; |
133 RMobilePhone imobPhone; |
135 RMobilePhone imobPhone; |
134 RTelServer iServer; |
136 RTelServer iServer; |
135 RTelServer::TPhoneInfo info; |
137 RTelServer::TPhoneInfo info; |
136 RMobilePhone::TMobilePhoneNetworkSecurity idispSecurity; |
138 RMobilePhone::TMobilePhoneNetworkSecurity idispSecurity; |
137 int currentselecteditem; |
139 int currentselecteditem; |
138 //This item should not be deleted,it just refer an item and deletion |
140 //This item should not be deleted,it just refer an item and deletion |
139 //will be taken care by List view |
141 //will be taken care by List view |
140 QStandardItem *modelItem; |
142 QStandardItem *modelItem; |
|
143 public: |
|
144 DmInfo* dminfo; |
141 }; |
145 }; |
142 |
146 |
143 #endif // DMADVANCEDVIEW_H |
147 #endif // DMADVANCEDVIEW_H |
144 |
148 |