iaupdate/IAD/ui/src/iaupdatesettingdialog.cpp
changeset 77 d1838696558c
parent 69 b18a4bf55ddb
child 80 9dcba1ee99f7
equal deleted inserted replaced
75:2d2d25361590 77:d1838696558c
   198     
   198     
   199     // Convert ist index index to setting value
   199     // Convert ist index index to setting value
   200     switch ( value )
   200     switch ( value )
   201          {
   201          {
   202          case KAutoUpdateOn:
   202          case KAutoUpdateOn:
   203              value = EIAUpdateSettingValueDisableWhenRoaming;
   203              value = EIAUpdateSettingValueEnable;
   204              break;
   204              break;
   205          case KAutoUpdateOff:
   205          case KAutoUpdateOff:
   206              value = EIAUpdateSettingValueDisable;
   206              value = EIAUpdateSettingValueDisable;
   207              break;
   207              break;
   208          case KAutoUpdateOnInHomeNetwork:
   208          case KAutoUpdateOnInHomeNetwork:
   209              value = EIAUpdateSettingValueEnable;
   209              value = EIAUpdateSettingValueDisableWhenRoaming; 
   210              break;
   210              break;
   211          default: 
   211          default: 
   212              break;
   212              break;
   213          }
   213          }
   214     err = cenrep->Set( KIAUpdateAutoUpdateCheck, value ); 
   214     err = cenrep->Set( KIAUpdateAutoUpdateCheck, value ); 
   319 // -----------------------------------------------------------------------------
   319 // -----------------------------------------------------------------------------
   320 //
   320 //
   321 void CIAUpdateSettingDialog::initializeView()
   321 void CIAUpdateSettingDialog::initializeView()
   322     {
   322     {
   323     
   323     
   324     setTitle("Software update"); 
   324     setTitle(hbTrId("txt_software_title_software_update")); 
   325     //setTitle(hbTrId("txt_software_title_software_update")); 
   325     
   326     
   326     mSettingsForm->setHeading(hbTrId("txt_software_subhead_settings"));
   327     mSettingsForm->setHeading("Settings"); 
       
   328     //mSettingsForm->setHeading(hbTrId("txt_software_subhead_settings"));
       
   329     
   327     
   330     //create a model class
   328     //create a model class
   331     HbDataFormModel *mModel = new HbDataFormModel();
   329     HbDataFormModel *mModel = new HbDataFormModel();
   332 
   330 
   333     // add Destination item
   331     // add Destination item
   334     mDestinationItem = mModel->appendDataFormItem(
   332     mDestinationItem = mModel->appendDataFormItem(
   335         HbDataFormModelItem::ToggleValueItem, QString("Network connection"));
   333         HbDataFormModelItem::ToggleValueItem, hbTrId("txt_software_formlabel_network_connection"));
   336         //HbDataFormModelItem::ToggleValueItem, hbTrId("txt_software_formlabel_network_connection"));
       
   337 
   334 
   338     // add auto update item
   335     // add auto update item
   339     mAutoUpdateItem = mModel->appendDataFormItem(
   336     mAutoUpdateItem = mModel->appendDataFormItem(
   340        HbDataFormModelItem::ComboBoxItem, QString("Auto-check for updates"));
   337        HbDataFormModelItem::ComboBoxItem, hbTrId("txt_software_setlabel_autocheck_for_updates"));
   341        //HbDataFormModelItem::ComboBoxItem, hbTrId("txt_software_setlabel_autocheck_for_updates"));
       
   342     
   338     
   343     // auto update selection values
   339     // auto update selection values
   344     QStringList list;
   340     QStringList list;
   345     list.insert(0, QString("On"));
   341     list.insert(0, hbTrId("txt_software_setlabel_val_on"));
   346     //list.insert(0, hbTrId("txt_software_setlabel_val_on"));
   342     list.append(hbTrId("txt_software_setlabel_val_off"));
   347     list.append(QString("Off")); 
   343     list.append(hbTrId("txt_software_setlabel_val_on_in_home_network"));
   348     //list.append(hbTrId("txt_software_setlabel_val_off"));
       
   349     list.append(QString("On in home network"));
       
   350     //list.append(hbTrId("txt_software_setlabel_val_on_in_home_network"));
       
   351     
   344     
   352     mAutoUpdateItem->setContentWidgetData("items", list);
   345     mAutoUpdateItem->setContentWidgetData("items", list);
   353 
   346 
   354      // connect data changes for launching the access point selection dialog
   347      // connect data changes for launching the access point selection dialog
   355     connect(mModel, SIGNAL(dataChanged(QModelIndex, QModelIndex)), 
   348     connect(mModel, SIGNAL(dataChanged(QModelIndex, QModelIndex)),