19 #define WLANSETTINGSPLUGIN_H_ |
19 #define WLANSETTINGSPLUGIN_H_ |
20 |
20 |
21 // System includes |
21 // System includes |
22 |
22 |
23 #include <QObject> |
23 #include <QObject> |
24 #include <QTranslator> |
24 #include <QScopedPointer> |
25 #include <cpplugininterface.h> |
25 #include <cpplugininterface.h> |
26 |
26 |
27 // User includes |
27 // User includes |
28 |
28 |
29 // Forward declarations |
29 // Forward declarations |
|
30 |
|
31 class HbTranslator; |
30 |
32 |
31 // External data types |
33 // External data types |
32 |
34 |
33 // Constants |
35 // Constants |
34 |
36 |
35 // Class declaration |
37 // Class declaration |
36 |
38 |
37 class CpWlanSettingsPlugin |
39 class CpWlanSettingsPlugin : public QObject, public CpPluginInterface |
38 : public QObject, |
|
39 public CpPluginInterface |
|
40 { |
40 { |
41 Q_OBJECT |
41 Q_OBJECT |
42 Q_INTERFACES(CpPluginInterface) |
42 Q_INTERFACES(CpPluginInterface) |
|
43 |
43 public: |
44 public: |
|
45 |
|
46 // Data types |
|
47 |
44 CpWlanSettingsPlugin(); |
48 CpWlanSettingsPlugin(); |
|
49 |
45 virtual ~CpWlanSettingsPlugin(); |
50 virtual ~CpWlanSettingsPlugin(); |
46 virtual QList<CpSettingFormItemData*> createSettingFormItemData(CpItemDataHelper &itemDataHelper) const; |
51 |
|
52 virtual QList<CpSettingFormItemData*> createSettingFormItemData( |
|
53 CpItemDataHelper &itemDataHelper) const; |
|
54 |
|
55 signals: |
|
56 |
|
57 public slots: |
|
58 |
|
59 protected: |
|
60 |
|
61 protected slots: |
47 |
62 |
48 private: |
63 private: |
49 |
64 |
50 Q_DISABLE_COPY(CpWlanSettingsPlugin) |
65 Q_DISABLE_COPY(CpWlanSettingsPlugin) |
51 |
66 |
52 private: //data |
67 private slots: |
53 |
68 |
54 QTranslator *translator; |
69 private: // data |
55 |
70 |
|
71 QScopedPointer<HbTranslator> mTranslator; //!< Translator for localisation |
|
72 |
|
73 // Friend classes |
56 }; |
74 }; |
57 |
75 |
58 |
|
59 #endif /* WLANSETTINGSPLUGIN_H_ */ |
76 #endif /* WLANSETTINGSPLUGIN_H_ */ |