cmmanager/cpwlanapplugin/src/cpwlanapview.cpp
changeset 53 4af712113915
parent 27 489cf6208544
equal deleted inserted replaced
47:cb7afde124a3 53:4af712113915
   165     mForm->addConnection(
   165     mForm->addConnection(
   166         mConnectionNameItem,
   166         mConnectionNameItem,
   167         SIGNAL(editingFinished()),
   167         SIGNAL(editingFinished()),
   168         this,
   168         this,
   169         SLOT(connectionNameChanged()));
   169         SLOT(connectionNameChanged()));
   170     mApSettingsGroupItem->appendChild(mConnectionNameItem);
   170     mConnectionNameItem->setContentWidgetData("objectName", "connectionNameEdit");
       
   171     mApSettingsGroupItem->appendChild(mConnectionNameItem); 
   171     
   172     
   172     // WLAN network name
   173     // WLAN network name
   173     mWlanNetworkNameItem = new CpSettingFormItemData(
   174     mWlanNetworkNameItem = new CpSettingFormItemData(
   174         HbDataFormModelItem::TextItem,
   175         HbDataFormModelItem::TextItem,
   175         hbTrId("txt_occ_setlabel_wlan_network_name"));
   176         hbTrId("txt_occ_setlabel_wlan_network_name"));
   177     mForm->addConnection(
   178     mForm->addConnection(
   178         mWlanNetworkNameItem,
   179         mWlanNetworkNameItem,
   179         SIGNAL(editingFinished()),
   180         SIGNAL(editingFinished()),
   180         this,
   181         this,
   181         SLOT(wlanNetworkNameChanged()));
   182         SLOT(wlanNetworkNameChanged()));
       
   183     mWlanNetworkNameItem->setContentWidgetData("objectName", "wlanNetworkNameEdit");
   182     mApSettingsGroupItem->appendChild(mWlanNetworkNameItem);
   184     mApSettingsGroupItem->appendChild(mWlanNetworkNameItem);
   183     
   185     
   184     // Network status
   186     // Network status
   185     mNetworkStatusItem = new CpSettingFormItemData(
   187     mNetworkStatusItem = new CpSettingFormItemData(
   186         HbDataFormModelItem::ComboBoxItem,
   188         HbDataFormModelItem::ComboBoxItem,
   198     mForm->addConnection(
   200     mForm->addConnection(
   199         mNetworkStatusItem,
   201         mNetworkStatusItem,
   200         SIGNAL(currentIndexChanged(int)),
   202         SIGNAL(currentIndexChanged(int)),
   201         this,
   203         this,
   202         SLOT(networkStatusChanged(int)));
   204         SLOT(networkStatusChanged(int)));
       
   205     mNetworkStatusItem->setContentWidgetData("objectName", "networkStatusCB");
   203     mApSettingsGroupItem->appendChild(mNetworkStatusItem);
   206     mApSettingsGroupItem->appendChild(mNetworkStatusItem);
   204     
   207     
   205     // Network mode
   208     // Network mode
   206     mNetworkModeItem = new CpSettingFormItemData(
   209     mNetworkModeItem = new CpSettingFormItemData(
   207         HbDataFormModelItem::ComboBoxItem,
   210         HbDataFormModelItem::ComboBoxItem,
   219     mForm->addConnection(
   222     mForm->addConnection(
   220         mNetworkModeItem,
   223         mNetworkModeItem,
   221         SIGNAL(currentIndexChanged(int)),
   224         SIGNAL(currentIndexChanged(int)),
   222         this,
   225         this,
   223         SLOT(networkModeChanged(int)));
   226         SLOT(networkModeChanged(int)));
       
   227     mNetworkModeItem->setContentWidgetData("objectName", "networkModeCB");
   224     mApSettingsGroupItem->appendChild(mNetworkModeItem);
   228     mApSettingsGroupItem->appendChild(mNetworkModeItem);
   225     
   229     
   226     // Ad-hoc channel
   230     // Ad-hoc channel
   227     // Added dynamically according to set network mode
   231     // Added dynamically according to set network mode
   228     
   232     
   236     mForm->addConnection(
   240     mForm->addConnection(
   237         mSecurityModeItem,
   241         mSecurityModeItem,
   238         SIGNAL(currentIndexChanged(int)),
   242         SIGNAL(currentIndexChanged(int)),
   239         this,
   243         this,
   240         SLOT(securityModeChanged(int)));
   244         SLOT(securityModeChanged(int)));
       
   245     mSecurityModeItem->setContentWidgetData("objectName", "securityModeCB");
   241     mApSettingsGroupItem->appendChild(mSecurityModeItem);
   246     mApSettingsGroupItem->appendChild(mSecurityModeItem);
   242     
   247     
   243     // Homepage
   248     // Homepage
   244     mHomepageItem = new CpSettingFormItemData(
   249     mHomepageItem = new CpSettingFormItemData(
   245         HbDataFormModelItem::TextItem,
   250         HbDataFormModelItem::TextItem,
   248     mForm->addConnection(
   253     mForm->addConnection(
   249         mHomepageItem,
   254         mHomepageItem,
   250         SIGNAL(editingFinished()),
   255         SIGNAL(editingFinished()),
   251         this,
   256         this,
   252         SLOT(homepageChanged()));
   257         SLOT(homepageChanged()));
       
   258     mHomepageItem->setContentWidgetData("objectName", "homepageEdit");
   253     mApSettingsGroupItem->appendChild(mHomepageItem);
   259     mApSettingsGroupItem->appendChild(mHomepageItem);
   254     
   260     
   255     // Read settings from CommsDat and update widgets
   261     // Read settings from CommsDat and update widgets
   256     updateAccessPointSettingsGroup();
   262     updateAccessPointSettingsGroup();
   257     
   263     
   614         // Empty name not allowed, revert back to old value
   620         // Empty name not allowed, revert back to old value
   615         connectionName = mCmConnectionMethod->getStringAttribute(
   621         connectionName = mCmConnectionMethod->getStringAttribute(
   616             CMManagerShim::CmName);
   622             CMManagerShim::CmName);
   617         mConnectionNameItem->setContentWidgetData("text", connectionName);
   623         mConnectionNameItem->setContentWidgetData("text", connectionName);
   618     }
   624     }
   619     
   625 
   620     OstTraceFunctionExit0(CPWLANAPVIEW_CONNECTIONNAMECHANGED_EXIT);
   626     OstTraceFunctionExit0(CPWLANAPVIEW_CONNECTIONNAMECHANGED_EXIT);
   621 }
   627 }
   622 
   628 
   623 /*!
   629 /*!
   624     Stores WLAN network name.
   630     Stores WLAN network name.