--- a/emailuis/nmailcpplugin/src/nmsettingsplugin.cpp Fri Jun 11 16:42:02 2010 +0300
+++ b/emailuis/nmailcpplugin/src/nmsettingsplugin.cpp Thu Jun 24 14:32:18 2010 +0300
@@ -27,7 +27,7 @@
/*!
\class NmSettingsPlugin
- \brief The class implements CpPluginPlatInterface which is an interface
+ \brief The class implements CpPluginInterface which is an interface
for plug-ins that are displayed in the control panel application.
The class works as an entry point for NMail settings.
@@ -67,19 +67,20 @@
\param itemDataHelper Helper class that helps control panel plug-ins to
connect slots to inner widgets of the setting items.
- \return Instance of CpSettingFormItemData.
- Caller is the owner of the returned instance.
+ \return List of CpSettingFormItemData items.
*/
-CpSettingFormItemData *NmSettingsPlugin::createSettingFormItemData(
+QList<CpSettingFormItemData*> NmSettingsPlugin::createSettingFormItemData(
CpItemDataHelper &itemDataHelper) const
{
NM_FUNCTION;
HbIcon icon("qtg_large_email");
+ QList<CpSettingFormItemData*> list;
- return new NmSettingsViewFactory(itemDataHelper,
- hbTrId("txt_mail_title_control_panel"), "",
- icon);
+ CpSettingFormItemData* viewFactory = new NmSettingsViewFactory(itemDataHelper,
+ hbTrId("txt_mail_title_control_panel"), "", icon);
+ list.append(viewFactory);
+ return list;
}
Q_EXPORT_PLUGIN2(nmsettingsplugin, NmSettingsPlugin);