cmmanager/cppacketdataapplugin/src/cppacketdataapview.cpp
changeset 44 a0c4ceac30d0
parent 41 bbb64eb3bdee
equal deleted inserted replaced
41:bbb64eb3bdee 44:a0c4ceac30d0
   141     mForm->addConnection(
   141     mForm->addConnection(
   142         mConnectionNameItem,
   142         mConnectionNameItem,
   143         SIGNAL(editingFinished()),
   143         SIGNAL(editingFinished()),
   144         this,
   144         this,
   145         SLOT(connectionNameChanged()));
   145         SLOT(connectionNameChanged()));
       
   146     mConnectionNameItem->setContentWidgetData("objectName", "connectionNameEdit");
   146     mApSettingsGroupItem->appendChild(mConnectionNameItem);
   147     mApSettingsGroupItem->appendChild(mConnectionNameItem);
   147     
   148     
   148     // Access point name
   149     // Access point name
   149     mAccessPointNameItem = new CpSettingFormItemData(
   150     mAccessPointNameItem = new CpSettingFormItemData(
   150         HbDataFormModelItem::TextItem,
   151         HbDataFormModelItem::TextItem,
   153     mForm->addConnection(
   154     mForm->addConnection(
   154         mAccessPointNameItem,
   155         mAccessPointNameItem,
   155         SIGNAL(editingFinished()),
   156         SIGNAL(editingFinished()),
   156         this,
   157         this,
   157         SLOT(accessPointNameChanged()));
   158         SLOT(accessPointNameChanged()));
       
   159     mAccessPointNameItem->setContentWidgetData("objectName", "accessPointNameEdit");
   158     mApSettingsGroupItem->appendChild(mAccessPointNameItem);
   160     mApSettingsGroupItem->appendChild(mAccessPointNameItem);
   159     
   161     
   160     // User name
   162     // User name
   161     mUserNameItem = new CpSettingFormItemData(
   163     mUserNameItem = new CpSettingFormItemData(
   162         HbDataFormModelItem::TextItem,
   164         HbDataFormModelItem::TextItem,
   165     mForm->addConnection(
   167     mForm->addConnection(
   166         mUserNameItem,
   168         mUserNameItem,
   167         SIGNAL(editingFinished()),
   169         SIGNAL(editingFinished()),
   168         this,
   170         this,
   169         SLOT(userNameChanged()));
   171         SLOT(userNameChanged()));
       
   172     mUserNameItem->setContentWidgetData("objectName", "userNameEdit");
   170     mApSettingsGroupItem->appendChild(mUserNameItem);
   173     mApSettingsGroupItem->appendChild(mUserNameItem);
   171     
   174     
   172     // Password
   175     // Password
   173     mPasswordItem = new CpSettingFormItemData(
   176     mPasswordItem = new CpSettingFormItemData(
   174         HbDataFormModelItem::TextItem,
   177         HbDataFormModelItem::TextItem,
   175         hbTrId("txt_occ_setlabel_password"));
   178         hbTrId("txt_occ_setlabel_password"));
   176     mPasswordItem->setContentWidgetData("echoMode", "Password");
   179     mPasswordItem->setContentWidgetData("echoMode", "PasswordEchoOnEdit");
   177     // Connect signal and add item to group
   180     // Connect signal and add item to group
   178     mForm->addConnection(
   181     mForm->addConnection(
   179         mPasswordItem,
   182         mPasswordItem,
   180         SIGNAL(editingFinished()),
   183         SIGNAL(editingFinished()),
   181         this,
   184         this,
   182         SLOT(passwordChanged()));
   185         SLOT(passwordChanged()));
       
   186     mPasswordItem->setContentWidgetData("objectName", "passwordEdit");
   183     mApSettingsGroupItem->appendChild(mPasswordItem);
   187     mApSettingsGroupItem->appendChild(mPasswordItem);
   184     
   188     
   185     // Authentication
   189     // Authentication
   186     mAuthenticationItem = new CpSettingFormItemData(
   190     mAuthenticationItem = new CpSettingFormItemData(
   187         HbDataFormModelItem::ComboBoxItem,
   191         HbDataFormModelItem::ComboBoxItem,
   199     mForm->addConnection(
   203     mForm->addConnection(
   200         mAuthenticationItem,
   204         mAuthenticationItem,
   201         SIGNAL(currentIndexChanged(int)),
   205         SIGNAL(currentIndexChanged(int)),
   202         this,
   206         this,
   203         SLOT(authenticationChanged(int)));
   207         SLOT(authenticationChanged(int)));
       
   208     mAuthenticationItem->setContentWidgetData("objectName", "authenticationCB");
   204     mApSettingsGroupItem->appendChild(mAuthenticationItem);
   209     mApSettingsGroupItem->appendChild(mAuthenticationItem);
   205     
   210     
   206     // Homepage
   211     // Homepage
   207     mHomepageItem = new CpSettingFormItemData(
   212     mHomepageItem = new CpSettingFormItemData(
   208         HbDataFormModelItem::TextItem,
   213         HbDataFormModelItem::TextItem,
   211     mForm->addConnection(
   216     mForm->addConnection(
   212         mHomepageItem,
   217         mHomepageItem,
   213         SIGNAL(editingFinished()),
   218         SIGNAL(editingFinished()),
   214         this,
   219         this,
   215         SLOT(homepageChanged()));
   220         SLOT(homepageChanged()));
       
   221     mHomepageItem->setContentWidgetData("objectName", "homePageEdit");
   216     mApSettingsGroupItem->appendChild(mHomepageItem);
   222     mApSettingsGroupItem->appendChild(mHomepageItem);
   217     
   223     
   218     // Read settings from CommsDat and update widgets
   224     // Read settings from CommsDat and update widgets
   219     updateAccessPointSettingsGroup();
   225     updateAccessPointSettingsGroup();
   220     
   226