deviceupdatesui/deviceupdates/src/dmadvancedview.cpp
changeset 62 03849bd79877
parent 56 a9afc3a8dbfa
child 67 fdbfe0a95492
equal deleted inserted replaced
60:d6935193cf9a 62:03849bd79877
   597         User::WaitForRequest( status );
   597         User::WaitForRequest( status );
   598         status = KRequestPending;
   598         status = KRequestPending;
   599         nwInfov1 = nwInfov1Pckg();
   599         nwInfov1 = nwInfov1Pckg();
   600         NetworkBand(nwInfov1.iBandInfo, str);
   600         NetworkBand(nwInfov1.iBandInfo, str);
   601         item = new QStandardItem();
   601         item = new QStandardItem();
   602         val = hbTrId("txt_device_update_dblist_gsm_bands");
   602         val = hbTrId("txt_deviceupdate_dblist_network_band_supported");
   603         liststr.clear();
   603         liststr.clear();
   604         liststr << val;
   604         liststr << val;
   605         liststr << str;
   605         liststr << str;
   606         item->setData(liststr , Qt::DisplayRole);
   606         item->setData(liststr , Qt::DisplayRole);
   607         m_otherdetailsmodel->appendRow(item);
   607         m_otherdetailsmodel->appendRow(item);
   629             status = KRequestPending;
   629             status = KRequestPending;
   630             nwInfov8 = nwInfov8Pckg();
   630             nwInfov8 = nwInfov8Pckg();
   631             if(nwInfov8.iHsupaAvailableIndicator) packetsrvc =3;
   631             if(nwInfov8.iHsupaAvailableIndicator) packetsrvc =3;
   632         }     
   632         }     
   633         liststr.clear();
   633         liststr.clear();
   634         val = hbTrId("txt_device_update_dblist_wcdma_uldl_data_rates");
   634         val = hbTrId("txt_deviceupdate_dblist_data_service_supported");
   635         liststr << val;
   635         liststr << val;
   636         item = new QStandardItem();
   636         item = new QStandardItem();
   637         PacketService(packetsrvc, str);
   637         PacketService(packetsrvc, str);
   638         liststr << str;
   638         liststr << str;
   639         item->setData(liststr , Qt::DisplayRole);
   639         item->setData(liststr , Qt::DisplayRole);
   641                     
   641                     
   642         // Ciphering
   642         // Ciphering
   643         
   643         
   644         liststr.clear();
   644         liststr.clear();
   645         item = new QStandardItem();
   645         item = new QStandardItem();
   646         val = hbTrId("txt_device_update_dblist_gsm_cipherings");
   646         val = hbTrId("txt_deviceupdate_dblist_network_security_level");
   647         liststr << val;
   647         liststr << val;
   648         imobPhone.GetNetworkSecurityLevel(status,idispSecurity);
   648         imobPhone.GetNetworkSecurityLevel(status,idispSecurity);
   649         User::WaitForRequest( status );
   649         User::WaitForRequest( status );
   650         NetworkCiphering(idispSecurity, str);
   650         NetworkCiphering(idispSecurity, str);
   651         liststr << str;
   651         liststr << str;
   849     {
   849     {
   850     qDebug("OMADM servers view DmAdvancedView::PacketService >>");
   850     qDebug("OMADM servers view DmAdvancedView::PacketService >>");
   851      switch (val)
   851      switch (val)
   852          {
   852          {
   853          case (0):
   853          case (0):
   854                  string = hbTrId("txt_device_update_dblist_wcdma_uldl_data_val_l1");
   854                  string = hbTrId("txt_deviceupdate_dblist_data_srvce_suppo_val_GPRS");
   855                  break;
   855                  break;
   856          case (1):
   856          case (1):
   857                  string = hbTrId("txt_device_update_dblist_wcdma_uldl_data_val_l2");
   857                  string = hbTrId("txt_deviceupdate_dblist_data_srvce_suppo_val_HSDPA");
   858                  break;
   858                  break;
   859          case (2):
   859          case (2):
   860                  string = hbTrId("txt_device_update_dblist_wcdma_uldl_data_val_l3");
   860                  string = hbTrId("txt_deviceupdate_dblist_data_srvce_suppo_val_HSUPA");
   861                  break;
   861                  break;
   862          case (3):
   862          case (3):
   863                  string = hbTrId("txt_device_update_dblist_wcdma_uldl_data_val_l4");
   863                  string = hbTrId("txt_deviceupdate_dblist_data_srvce_suppo_val_EGPRS");
   864                  break;
   864                  break;
   865          case (4):
   865          case (4):
   866                  string = hbTrId("txt_device_update_dblist_gsm_cipherings_val_l4");
   866                  string = hbTrId("txt_deviceupdate_dblist_ntwrk_secu_lvl_val_CDMA");
   867                  break;
   867                  break;
   868          case (5):
   868          case (5):
   869          default :
   869          default :
   870                  string = hbTrId("txt_device_update_dblist_wcdma_uldl_data_val_l5");
   870                  string = hbTrId("txt_deviceupdate_dblist_data_srvce_suppo_val_Unknow");
   871                  break;
   871                  break;
   872          }
   872          }
   873      qDebug("OMADM servers view DmAdvancedView::PacketService <<");
   873      qDebug("OMADM servers view DmAdvancedView::PacketService <<");
   874      }
   874      }
   875 
   875 
   878     {
   878     {
   879     qDebug("OMADM servers view DmAdvancedView::NetworkCiphering >>");
   879     qDebug("OMADM servers view DmAdvancedView::NetworkCiphering >>");
   880      switch (val)
   880      switch (val)
   881          {
   881          {
   882          case (RMobilePhone::ECipheringGSM):
   882          case (RMobilePhone::ECipheringGSM):
   883                  string = hbTrId("txt_device_update_dblist_gsm_cipherings_val_l2");
   883                  string = hbTrId("txt_deviceupdate_dblist_ntwrk_secu_lvl_val_GSM");
   884                  break;
   884                  break;
   885          case (RMobilePhone::ECipheringWCDMA):
   885          case (RMobilePhone::ECipheringWCDMA):
   886                  string = hbTrId("txt_device_update_dblist_gsm_cipherings_val_l3");
   886                  string = hbTrId("txt_deviceupdate_dblist_ntwrk_secu_lvl_val_WCDMA");
   887                  break;
   887                  break;
   888          case (RMobilePhone::ECipheringCDMA):
   888          case (RMobilePhone::ECipheringCDMA):
   889                  string = hbTrId("txt_device_update_dblist_gsm_cipherings_val_l4");
   889                  string = hbTrId("txt_deviceupdate_dblist_ntwrk_secu_lvl_val_CDMA");
   890                  break;
   890                  break;
   891          case (RMobilePhone::ECipheringOff):
   891          case (RMobilePhone::ECipheringOff):
   892          default :
   892          default :
   893                  string = hbTrId("txt_device_update_dblist_gsm_cipherings_val_l1");
   893                  string = hbTrId("txt_deviceupdate_dblist_ntwrk_secu_lvl_val_none");
   894                  break;
   894                  break;
   895          }
   895          }
   896      qDebug("OMADM servers view DmAdvancedView::NetworkCiphering <<");
   896      qDebug("OMADM servers view DmAdvancedView::NetworkCiphering <<");
   897     }
   897     }
   898     
   898     
   900     {
   900     {
   901     qDebug("OMADM servers view DmAdvancedView::NetworkBand >>");
   901     qDebug("OMADM servers view DmAdvancedView::NetworkBand >>");
   902     switch (val)
   902     switch (val)
   903         {
   903         {
   904         case (RMobilePhone::E800BandA):
   904         case (RMobilePhone::E800BandA):
   905                 string = hbTrId("txt_device_update_dblist_gsm_bands_val_l2");
   905                 string = hbTrId("txt_deviceupdate_dblist_netwrk_bnd_spp_val__800BA");
   906                 break;
   906                 break;
   907         case (RMobilePhone::E800BandB):
   907         case (RMobilePhone::E800BandB):
   908                 string = hbTrId("txt_device_update_dblist_gsm_bands_val_l3");
   908                 string = hbTrId("txt_deviceupdate_dblist_netwrk_bnd_spp_val__800BB");
   909                 break;
   909                 break;
   910         case (RMobilePhone::E800BandC):
   910         case (RMobilePhone::E800BandC):
   911                 string = hbTrId("txt_device_update_dblist_gsm_bands_val_l4");
   911                 string = hbTrId("txt_deviceupdate_dblist_netwrk_bnd_spp_val__800BC");
   912                 break;
   912                 break;
   913         case (RMobilePhone::E1900BandA):
   913         case (RMobilePhone::E1900BandA):
   914                 string = hbTrId("txt_device_update_dblist_gsm_bands_val_l5");
   914                 string = hbTrId("txt_deviceupdate_dblist_netwrk_bnd_spp_val__1900BA");
   915                 break;
   915                 break;
   916         case (RMobilePhone::E1900BandB):
   916         case (RMobilePhone::E1900BandB):
   917                 string = hbTrId("txt_device_update_dblist_gsm_bands_val_l6");
   917                 string = hbTrId("txt_deviceupdate_dblist_netwrk_bnd_spp_val__1900BB");
   918                 break;
   918                 break;
   919         case (RMobilePhone::E1900BandC):
   919         case (RMobilePhone::E1900BandC):
   920                 string = hbTrId("txt_device_update_dblist_gsm_bands_val_l7");
   920                 string = hbTrId("txt_deviceupdate_dblist_netwrk_bnd_spp_val__1900BC");
   921                 break;
   921                 break;
   922         case (RMobilePhone::E1900BandD):
   922         case (RMobilePhone::E1900BandD):
   923                 string = hbTrId("txt_device_update_dblist_gsm_bands_val_l8");
   923                 string = hbTrId("txt_deviceupdate_dblist_netwrk_bnd_spp_val__1900BD");
   924                 break;
   924                 break;
   925         case (RMobilePhone::E1900BandE):
   925         case (RMobilePhone::E1900BandE):
   926                 string = hbTrId("txt_device_update_dblist_gsm_bands_val_l9");
   926                 string = hbTrId("txt_deviceupdate_dblist_netwrk_bnd_spp_val__1900BE");
   927                 break;
   927                 break;
   928         case (RMobilePhone::E1900BandF):
   928         case (RMobilePhone::E1900BandF):
   929                 string = hbTrId("txt_device_update_dblist_gsm_bands_val_l10");
   929                 string = hbTrId("txt_deviceupdate_dblist_netwrk_bnd_spp_val__1900BF");
   930                 break;
   930                 break;
   931         case (RMobilePhone::EBandUnknown):
   931         case (RMobilePhone::EBandUnknown):
   932         default :
   932         default :
   933                 string = hbTrId("txt_device_update_dblist_gsm_bands_val_l1");
   933                 string = hbTrId("txt_deviceupdate_dblist_netwrk_bnd_spp_val_unknown");
   934                 break;
   934                 break;
   935         }   
   935         }   
   936     qDebug("OMADM servers view DmAdvancedView::NetworkBand <<");
   936     qDebug("OMADM servers view DmAdvancedView::NetworkBand <<");
   937     }
   937     }
   938 
   938