17 #include <cpsettingformentryitemdataimpl.h> |
17 #include <cpsettingformentryitemdataimpl.h> |
18 #include "cpnetworkplugin.h" |
18 #include "cpnetworkplugin.h" |
19 #include "cpnetworkpluginview.h" |
19 #include "cpnetworkpluginview.h" |
20 #include "cppluginlogging.h" |
20 #include "cppluginlogging.h" |
21 |
21 |
|
22 |
22 /*! |
23 /*! |
23 CpNetworkPlugin::CpNetworkPlugin |
24 CpNetworkPlugin::CpNetworkPlugin |
24 */ |
25 */ |
25 CpNetworkPlugin::CpNetworkPlugin() : QObject(0) |
26 CpNetworkPlugin::CpNetworkPlugin() : |
|
27 QObject(0), |
|
28 m_localisation(0) |
26 { |
29 { |
27 INSTALL_TRACE_MSG_HANDLER; |
30 INSTALL_TRACE_MSG_HANDLER; |
|
31 DPRINT << ": IN"; |
28 |
32 |
29 DPRINT; |
33 // Set scoped pointer |
|
34 m_localisation.reset(new CpPhoneLocalisation); |
|
35 |
|
36 // Install required translations |
|
37 m_localisation->installTranslator( |
|
38 CpPhoneLocalisation:: |
|
39 TranslationFileCommon); |
|
40 |
|
41 DPRINT << ": OUT"; |
30 } |
42 } |
|
43 |
31 |
44 |
32 /*! |
45 /*! |
33 CpNetworkPlugin::~CpNetworkPlugin |
46 CpNetworkPlugin::~CpNetworkPlugin |
34 */ |
47 */ |
35 CpNetworkPlugin::~CpNetworkPlugin() |
48 CpNetworkPlugin::~CpNetworkPlugin() |
36 { |
49 { |
|
50 DPRINT; |
37 UNINSTALL_TRACE_MSG_HANDLER; |
51 UNINSTALL_TRACE_MSG_HANDLER; |
38 } |
52 } |
|
53 |
39 |
54 |
40 /*! |
55 /*! |
41 CpNetworkPlugin::createSettingFormItemData |
56 CpNetworkPlugin::createSettingFormItemData |
42 */ |
57 */ |
43 QList<CpSettingFormItemData*> CpNetworkPlugin::createSettingFormItemData( |
58 QList<CpSettingFormItemData*> CpNetworkPlugin::createSettingFormItemData( |
46 DPRINT; |
61 DPRINT; |
47 |
62 |
48 QList<CpSettingFormItemData*> ret; |
63 QList<CpSettingFormItemData*> ret; |
49 ret.append(new CpSettingFormEntryItemDataImpl<CpNetworkPluginView>( |
64 ret.append(new CpSettingFormEntryItemDataImpl<CpNetworkPluginView>( |
50 itemDataHelper, |
65 itemDataHelper, |
51 hbTrId("txt_cp_dblist_mobile_network"), |
66 hbTrId("txt_cp_dblist_mobile_network"), |
52 hbTrId(""))); |
67 hbTrId(""))); |
53 return ret; |
68 return ret; |
54 } |
69 } |
55 |
70 |
|
71 |
56 Q_EXPORT_PLUGIN2(CpNetworkPlugin, CpNetworkPlugin); |
72 Q_EXPORT_PLUGIN2(CpNetworkPlugin, CpNetworkPlugin); |