deviceupdatesui/deviceupdates/inc/dmadvancedview.h
changeset 33 7464c1e21dae
child 36 9eefb50e711a
equal deleted inserted replaced
2:a5fecba4b1e4 33:7464c1e21dae
       
     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>
       
    33 #include <HbAnchorLayout.h>
       
    34 #include <hbicon.h>
       
    35 #include <QStandardItem>
       
    36 #include <QTranslator.h>
       
    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>
       
    45 #include <Etel3rdparty.h>
       
    46 #include <etelmm.h>
       
    47 #include <etel.h>
       
    48 #include "serversettingsview.h"
       
    49 #include "dminforetrieval.h"
       
    50 #define DOCML_FILE_NAME ":xml/serversview.docml"
       
    51 #define VIEW_NAME "view"
       
    52 #define LIST_NAME "listView"
       
    53 #define GROUP "groupBox"
       
    54 #define BANNER_NAME "banner"
       
    55 #define NEWSERVERBUTTON "pushButton"
       
    56 #define WIDGET "content"
       
    57 #define LABEL "label"
       
    58 #define LISTOTHERDETAILS "listView_1"
       
    59 #define OTHERDETAILSGROUP "groupBox_1"
       
    60 #define LANDSCAPE "landscape"
       
    61 #define PORTRAIT "portrait"
       
    62 
       
    63 const TInt KWlanMacAddrLength = 100;
       
    64 const TInt KBTAddrLength = 64; 
       
    65 class DmAdvancedView : public HbView
       
    66 {
       
    67     Q_OBJECT
       
    68 
       
    69 public:
       
    70     explicit DmAdvancedView(HbMainWindow *mainWindow, HbView *mainView, QGraphicsItem *parent=0);
       
    71     virtual ~DmAdvancedView();   
       
    72     bool displayItems();
       
    73     void saveProfile(QStringList& itemdata, bool& sessmode, QString& currap,unsigned int& portnum, bool& nauth );
       
    74     bool checkServerId(QString& serverid);
       
    75     void setBackBehavior();
       
    76     void syncCompleted(int jobstatus);
       
    77     void PacketService(TInt val, QString& string);
       
    78     void NetworkBand(RMobilePhone::TMobilePhoneNetworkBandInfo val, QString& string); 
       
    79     void NetworkCiphering(RMobilePhone::TMobilePhoneNetworkSecurity val, QString& string);  
       
    80     void mainCalltoUpdateView();
       
    81     
       
    82 private:
       
    83     void updateEarlierdefaultProfileIcon();
       
    84     void updateListview();
       
    85     
       
    86 public slots:        
       
    87     void handleLongPress(HbAbstractViewItem* item,QPointF coOrdinates);
       
    88     void handleClicked(QModelIndex index);
       
    89     void createNewProfile();
       
    90     void otherDetailsGroupClicked(bool state);
       
    91     void serversListGroupClicked(bool state);
       
    92     void reLayout(Qt::Orientation layoutType);
       
    93     void backButtonClicked();
       
    94     
       
    95 private:        
       
    96     HbGroupBox *serversListGroup;
       
    97     HbGroupBox *otherDetailsGroup;
       
    98     HbListView* list;
       
    99     HbListView* otherdetailslist;
       
   100     HbLabel *label; 
       
   101     HbMenu* csmenu;
       
   102     HbMenu* viewspecificmenu;
       
   103     HbAction* help;
       
   104     HbAction* exit;
       
   105     HbWidget* viewwidget;
       
   106     HbDocumentLoader *docmlLoader;
       
   107     HbPushButton* newserverprofile;
       
   108     int count;
       
   109     QTranslator *translator;
       
   110     DmInfo* dminfo;
       
   111     QStandardItemModel *model;
       
   112     QStandardItemModel *otherdetailsmodel;
       
   113     int currentdefaultprofile;
       
   114     bool connectionRequested;
       
   115     bool backbehaviorset;
       
   116     QIcon bluetooth;
       
   117     QIcon internet;
       
   118     QIcon defaultprofileicon;
       
   119     HbMainWindow *iMainWindow;
       
   120     ServerSettingsView* serverSetView;
       
   121     HbAnchorLayout* layout;
       
   122     int currentview;
       
   123     HbView* iMainView;
       
   124     HbAction* backaction;
       
   125     RMobilePhone imobPhone;
       
   126     RTelServer iServer;
       
   127     RTelServer::TPhoneInfo info;	
       
   128 	RMobilePhone::TMobilePhoneNetworkSecurity idispSecurity;
       
   129 };
       
   130 
       
   131 #endif // DMADVANCEDVIEW_H
       
   132