12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 |
|
18 #include <cpsettingformentryitemdataimpl.h> |
17 #include <cpsettingformentryitemdataimpl.h> |
19 #include <cpitemdatahelper.h> |
18 #include <cpitemdatahelper.h> |
20 #include "cptelephonyplugin.h" |
19 #include "cptelephonyplugin.h" |
21 #include "cptelephonypluginview.h" |
20 #include "cptelephonypluginview.h" |
22 #include "cppluginlogging.h" |
21 #include "cppluginlogging.h" |
23 |
22 |
24 CpTelephonyPlugin::CpTelephonyPlugin() : QObject(0) |
23 |
|
24 /*! |
|
25 CpTelephonyPlugin::CpTelephonyPlugin() |
|
26 */ |
|
27 CpTelephonyPlugin::CpTelephonyPlugin() : |
|
28 QObject(0), |
|
29 m_localisation(0) |
25 { |
30 { |
26 // Install plugin specific msg handler |
31 // Install plugin specific msg handler |
27 INSTALL_TRACE_MSG_HANDLER; |
32 INSTALL_TRACE_MSG_HANDLER; |
|
33 DPRINT << ": IN"; |
|
34 |
|
35 // Set scoped pointer |
|
36 m_localisation.reset(new CpPhoneLocalisation(this)); |
|
37 |
|
38 // Install required translations |
|
39 m_localisation->installTranslator( |
|
40 CpPhoneLocalisation:: |
|
41 TranslationFileCommon); |
|
42 m_localisation->installTranslator( |
|
43 CpPhoneLocalisation:: |
|
44 TranslationFileTelephoneCp); |
28 |
45 |
29 DPRINT; |
46 DPRINT << ": OUT"; |
30 } |
47 } |
31 |
48 |
|
49 /*! |
|
50 CpTelephonyPlugin::~CpTelephonyPlugin() |
|
51 */ |
32 CpTelephonyPlugin::~CpTelephonyPlugin() |
52 CpTelephonyPlugin::~CpTelephonyPlugin() |
33 { |
53 { |
34 DPRINT; |
54 DPRINT; |
35 |
55 |
36 // Uninstall plugin specific msg handler |
56 // Uninstall plugin specific msg handler |
37 UNINSTALL_TRACE_MSG_HANDLER; |
57 UNINSTALL_TRACE_MSG_HANDLER; |
38 } |
58 } |
39 |
59 |
|
60 /*! |
|
61 CpTelephonyPlugin::createSettingFormItemData() const |
|
62 */ |
40 QList<CpSettingFormItemData*> CpTelephonyPlugin::createSettingFormItemData( |
63 QList<CpSettingFormItemData*> CpTelephonyPlugin::createSettingFormItemData( |
41 CpItemDataHelper &itemDataHelper) const |
64 CpItemDataHelper &itemDataHelper) const |
42 { |
65 { |
43 DPRINT; |
66 DPRINT; |
44 |
67 |