14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 #include <cpsettingformentryitemdataimpl.h> |
17 #include <cpsettingformentryitemdataimpl.h> |
18 #include <cpitemdatahelper.h> |
18 #include <cpitemdatahelper.h> |
|
19 |
19 #include "cptelephonyplugin.h" |
20 #include "cptelephonyplugin.h" |
20 #include "cptelephonypluginview.h" |
21 #include "cptelephonypluginview.h" |
21 #include "cppluginlogging.h" |
22 #include "cppluginlogging.h" |
22 |
23 |
23 |
24 |
24 /*! |
25 /*! |
25 CpTelephonyPlugin::CpTelephonyPlugin() |
26 CpTelephonyPlugin::CpTelephonyPlugin() |
26 */ |
27 */ |
27 CpTelephonyPlugin::CpTelephonyPlugin() : |
28 CpTelephonyPlugin::CpTelephonyPlugin() : |
28 QObject(0), |
29 QObject(0), |
29 m_localisation(0) |
30 m_translator(NULL) |
30 { |
31 { |
31 // Install plugin specific msg handler |
32 // Install plugin specific msg handler |
32 INSTALL_TRACE_MSG_HANDLER; |
33 INSTALL_TRACE_MSG_HANDLER; |
33 DPRINT << ": IN"; |
34 DPRINT << ": IN"; |
34 |
35 m_translator.reset(new HbTranslator(QString("telephone_cp"))); |
35 // Set scoped pointer |
36 m_translator->loadCommon(); |
36 m_localisation.reset(new PhoneLocalisation(this)); |
|
37 |
|
38 // Install required translations |
|
39 m_localisation->installTranslator( |
|
40 PhoneLocalisation:: |
|
41 TranslationFileCommon); |
|
42 m_localisation->installTranslator( |
|
43 PhoneLocalisation:: |
|
44 TranslationFileTelephoneCp); |
|
45 |
|
46 DPRINT << ": OUT"; |
37 DPRINT << ": OUT"; |
47 } |
38 } |
48 |
39 |
49 /*! |
40 /*! |
50 CpTelephonyPlugin::~CpTelephonyPlugin() |
41 CpTelephonyPlugin::~CpTelephonyPlugin() |