diff -r c4687ff85147 -r 6757f1e2efd2 deviceupdatesui/deviceupdates/inc/dmadvancedview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deviceupdatesui/deviceupdates/inc/dmadvancedview.h Tue Aug 31 15:05:55 2010 +0300 @@ -0,0 +1,147 @@ +/* +* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Launches Advanced view +* +*/ + +#ifndef DMADVANCEDVIEW_H +#define DMADVANCEDVIEW_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "nsmldmsyncprivatecrkeys.h" +#include "serversettingsview.h" +#include "dminforetrieval.h" +#define DOCML_FILE_NAME ":xml/serversview.docml" +#define VIEW_NAME "view" +#define LIST_NAME "listView" +#define GROUP "groupBox" +#define BANNER_NAME "banner" +#define NEWSERVERBUTTON "pushButton" +#define WIDGET "content" +#define LABEL "label" +#define LISTOTHERDETAILS "listView_1" +#define OTHERDETAILSGROUP "groupBox_1" +#define LANDSCAPE "landscape" +#define PORTRAIT "portrait" + +const TInt KWlanMacAddrLength = 100; +const TInt KBTAddrLength = 64; +class DMFotaView; +class DmAdvancedView : public HbView +{ + Q_OBJECT + +public: + explicit DmAdvancedView(HbMainWindow *mainWindow, DMFotaView *mainView,DmInfo *info=NULL, QGraphicsItem *parent=0); + virtual ~DmAdvancedView(); + bool displayItems(); + void saveProfile(QStringList& itemdata, bool& sessmode, QString& currap,unsigned int& portnum, bool& nauth ); + bool checkServerId(QString& serverid); + void setBackBehavior(); + void syncCompleted(int jobstatus); + void PacketService(TInt val, QString& string); + void NetworkBand(RMobilePhone::TMobilePhoneNetworkBandInfo val, QString& string); + void NetworkCiphering(RMobilePhone::TMobilePhoneNetworkSecurity val, QString& string); + void mainCalltoUpdateView(); + void addVersionInfo(); + void addOtherDetails(); +private: + void updateEarlierdefaultProfileIcon(); + void updateListview(); + +public slots: + void handleLongPress(HbAbstractViewItem* item,QPointF coOrdinates); + void handleClicked(QModelIndex index); + void createNewProfile(); + void otherDetailsGroupClicked(bool state); + void serversListGroupClicked(bool state); + void reLayout(Qt::Orientation layoutType); + void backButtonClicked(); + void defaultMenuItemSelected(); + void deleteMenuItemSelected(); + void connectMenuItemSelected(); + +private: + HbGroupBox *serversListGroup; + HbGroupBox *otherDetailsGroup; + HbListView* list; + HbListView* otherdetailslist; + HbLabel *label; + HbMenu* viewspecificmenu; + HbAction* help; + HbAction* exit; + HbWidget* viewwidget; + HbDocumentLoader *docmlLoader; + int count; + QTranslator *translator; + QStandardItemModel *model; + QStandardItemModel *m_otherdetailsmodel; + int currentdefaultprofile; + bool connectionRequested; + bool backbehaviorset; + QIcon bluetooth; + QIcon internet; + QIcon defaultprofileicon; + HbMainWindow *iMainWindow; + ServerSettingsView* serverSetView; + HbAnchorLayout* layout; + int currentview; + //HbView* iMainView; + DMFotaView* iMainView; + HbAction* backaction; + RMobilePhone imobPhone; + RTelServer iServer; + RTelServer::TPhoneInfo info; + RMobilePhone::TMobilePhoneNetworkSecurity idispSecurity; + int currentselecteditem; + //This item should not be deleted,it just refer an item and deletion + //will be taken care by List view + QStandardItem *modelItem; +public: + DmInfo* dminfo; +}; + +#endif // DMADVANCEDVIEW_H +