equal
deleted
inserted
replaced
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: Interface for controlpanel plugins. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef CPPLUGININTERFACE_H |
18 #ifndef CPPLUGININTERFACE_H |
19 #define CPPLUGININTERFACE_H |
19 #define CPPLUGININTERFACE_H |
21 #include <QtPlugin> |
21 #include <QtPlugin> |
22 #include <QList> |
22 #include <QList> |
23 |
23 |
24 /*! |
24 /*! |
25 \class CpPluginInterface |
25 \class CpPluginInterface |
26 \brief The class CpPluginInterface is an interface for plugins which can be displayed in control panel application. |
26 \brief The class CpPluginInterface is an interface for controlpanel plugins. |
27 */ |
27 */ |
28 |
28 |
29 class CpSettingFormItemData; |
29 class CpSettingFormItemData; |
30 class CpItemDataHelper; |
30 class CpItemDataHelper; |
31 |
31 |
38 virtual ~CpPluginInterface() |
38 virtual ~CpPluginInterface() |
39 { |
39 { |
40 } |
40 } |
41 |
41 |
42 /*! |
42 /*! |
43 Create a data form mode item, by which the control panel framework can build a data form model. |
43 Create a set of data form mode item, by which the control panel framework can build a data form model. |
44 */ |
44 */ |
45 virtual QList<CpSettingFormItemData*> createSettingFormItemData(CpItemDataHelper &itemDataHelper) const = 0; |
45 virtual QList<CpSettingFormItemData*> createSettingFormItemData(CpItemDataHelper &itemDataHelper) const = 0; |
46 }; |
46 }; |
47 |
47 |
48 Q_DECLARE_INTERFACE(CpPluginInterface, "com.nokia.controlpanel.plugin.interface/1.0"); |
48 Q_DECLARE_INTERFACE(CpPluginInterface, "com.nokia.controlpanel.plugin.interface/1.0"); |