emailuis/nmailcpplugin/src/nmsettingsplugin.cpp
changeset 54 997a02608b3a
parent 30 759dc5235cdb
equal deleted inserted replaced
53:bf7eb7911fc5 54:997a02608b3a
    25 #include "nmsettingsplugin.h"
    25 #include "nmsettingsplugin.h"
    26 #include "nmsettingsviewfactory.h"
    26 #include "nmsettingsviewfactory.h"
    27 
    27 
    28 /*!
    28 /*!
    29     \class NmSettingsPlugin
    29     \class NmSettingsPlugin
    30     \brief The class implements CpPluginPlatInterface which is an interface
    30     \brief The class implements CpPluginInterface which is an interface
    31            for plug-ins that are displayed in the control panel application.
    31            for plug-ins that are displayed in the control panel application.
    32            The class works as an entry point for NMail settings.
    32            The class works as an entry point for NMail settings.
    33 
    33 
    34 */
    34 */
    35 
    35 
    65     Creates a data form model item, that is used by the control panel framework.
    65     Creates a data form model item, that is used by the control panel framework.
    66 
    66 
    67     \param itemDataHelper Helper class that helps control panel plug-ins to
    67     \param itemDataHelper Helper class that helps control panel plug-ins to
    68            connect slots to inner widgets of the setting items.
    68            connect slots to inner widgets of the setting items.
    69 
    69 
    70     \return Instance of CpSettingFormItemData.
    70     \return List of CpSettingFormItemData items.
    71             Caller is the owner of the returned instance.
       
    72 */
    71 */
    73 CpSettingFormItemData *NmSettingsPlugin::createSettingFormItemData(
    72 QList<CpSettingFormItemData*> NmSettingsPlugin::createSettingFormItemData(
    74     CpItemDataHelper &itemDataHelper) const
    73     CpItemDataHelper &itemDataHelper) const
    75 {
    74 {
    76     NM_FUNCTION;
    75     NM_FUNCTION;
    77     
    76     
    78     HbIcon icon("qtg_large_email");
    77     HbIcon icon("qtg_large_email");
       
    78     QList<CpSettingFormItemData*> list;
    79 
    79 
    80     return new NmSettingsViewFactory(itemDataHelper,
    80     CpSettingFormItemData* viewFactory = new NmSettingsViewFactory(itemDataHelper,
    81         hbTrId("txt_mail_title_control_panel"), "",
    81         hbTrId("txt_mail_title_control_panel"), "", icon);
    82         icon);
    82     list.append(viewFactory);
       
    83     return list;
    83 }
    84 }
    84 
    85 
    85 Q_EXPORT_PLUGIN2(nmsettingsplugin, NmSettingsPlugin);
    86 Q_EXPORT_PLUGIN2(nmsettingsplugin, NmSettingsPlugin);