securitysettings/cpeapuiplugins/cpeapciphersuiteui/src/cpeapciphersuiteui_p.cpp
changeset 52 c23bdf5a328a
parent 39 fe6b6762fccd
equal deleted inserted replaced
51:e863583e6720 52:c23bdf5a328a
    15 *   Control Panel QT UI for TLS ciphersuite configiration in EAP methods
    15 *   Control Panel QT UI for TLS ciphersuite configiration in EAP methods
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 /*
    19 /*
    20 * %version: 4 %
    20 * %version: 5 %
    21 */
    21 */
    22 
    22 
    23 // System includes
    23 // System includes
    24 #include <cpsettingformitemdata.h>
    24 #include <cpsettingformitemdata.h>
    25 #include <eapqtconfig.h>
    25 #include <eapqtconfig.h>
    92 CpSettingFormItemData* CpEapCiphersuiteUiPrivate::createGroupItem(
    92 CpSettingFormItemData* CpEapCiphersuiteUiPrivate::createGroupItem(
    93     QVariant &suites, QString name, int id)
    93     QVariant &suites, QString name, int id)
    94 {
    94 {
    95     qDebug("CpEapCiphersuiteUiPrivate::createGroupItem - id: 0x%04x", id);
    95     qDebug("CpEapCiphersuiteUiPrivate::createGroupItem - id: 0x%04x", id);
    96     QScopedPointer<CpSettingFormItemData> mItem;
    96     QScopedPointer<CpSettingFormItemData> mItem;
    97     mItem.reset(new CpSettingFormItemData(
    97     mItem.reset(
       
    98         new CpSettingFormItemData(
    98         HbDataFormModelItem::CheckBoxItem, QString("")));
    99         HbDataFormModelItem::CheckBoxItem, QString("")));
       
   100         
       
   101     mItem->setContentWidgetData("objectName", name);
    99     mItem->setContentWidgetData("text", name);
   102     mItem->setContentWidgetData("text", name);
   100     mItem->setContentWidgetData("checkState", ciphersuiteSelected(
   103     mItem->setContentWidgetData(
   101         suites, id));
   104         "checkState", 
       
   105         ciphersuiteSelected(suites, id));
   102     mSuiteMapper[mItem.data()] = id;
   106     mSuiteMapper[mItem.data()] = id;
   103     
   107     
   104     CpSettingFormItemData* tmp = mItem.data();
   108     CpSettingFormItemData* tmp = mItem.data();
   105     mItem.take();
   109     mItem.take();
   106     return tmp;
   110     return tmp;