equal
deleted
inserted
replaced
18 |
18 |
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include <f32file.h> |
20 #include <f32file.h> |
21 #include <CWPCharacteristic.h> |
21 #include <CWPCharacteristic.h> |
22 #include <CWPParameter.h> |
22 #include <CWPParameter.h> |
23 #include <wpmbxnbradapterresource.rsg> |
|
24 #include <cvoicemailbox.h> |
23 #include <cvoicemailbox.h> |
25 #include <cvoicemailboxentry.h> |
24 #include <cvoicemailboxentry.h> |
26 #include <commonphoneparser.h> |
25 #include <commonphoneparser.h> |
27 #include <voicemailboxdomaincrkeys.h> |
26 #include <voicemailboxdomaincrkeys.h> |
28 #include <centralrepository.h> |
27 #include <centralrepository.h> |
29 |
28 |
30 #include "WPAdapterUtil.h" |
29 #include "WPAdapterUtil.h" |
31 #include "MbxNbrAdapter.h" |
30 #include "MbxNbrAdapter.h" |
32 #include "ProvisioningDebug.h" |
31 #include "ProvisioningDebug.h" |
|
32 #include <hbtextresolversymbian.h> |
33 |
33 |
34 // CONSTANTS |
34 // CONSTANTS |
35 #if ( defined (__WINS__) || defined (__WINSCW) ) // this different on hw |
35 #if ( defined (__WINS__) || defined (__WINSCW) ) // this different on hw |
36 _LIT( KAdapterName, "WPMbxNbrAdapterResource" ); |
36 _LIT( KAdapterName, "WPMbxNbrAdapterResource" ); |
37 #else |
37 #else |
42 _LIT( KCSVideoMailboxType, "VIDEO" ); |
42 _LIT( KCSVideoMailboxType, "VIDEO" ); |
43 _LIT( KVideoSupportType, "VIDEO_MBOX_SUPPORT" ); |
43 _LIT( KVideoSupportType, "VIDEO_MBOX_SUPPORT" ); |
44 _LIT( KVideoSupportTypeTrue, "TRUE" ); |
44 _LIT( KVideoSupportTypeTrue, "TRUE" ); |
45 _LIT( KVideoSupportTypeFalse, "FALSE" ); |
45 _LIT( KVideoSupportTypeFalse, "FALSE" ); |
46 _LIT( KMailboxAppId, "w9027" ); // From OMA provisioning registration document |
46 _LIT( KMailboxAppId, "w9027" ); // From OMA provisioning registration document |
|
47 _LIT( KMailboxResourceFileName, "deviceupdates_" ); |
|
48 _LIT( KMailboxResourceFilePath, "z:/resource/qt/translations/" ); |
|
49 |
47 const TInt KSettingsGranularity = 2; |
50 const TInt KSettingsGranularity = 2; |
48 |
51 |
49 // ============================ MEMBER FUNCTIONS =============================== |
52 // ============================ MEMBER FUNCTIONS =============================== |
50 |
53 |
51 // ----------------------------------------------------------------------------- |
54 // ----------------------------------------------------------------------------- |
66 // |
69 // |
67 void CMbxNbrAdapter::ConstructL() |
70 void CMbxNbrAdapter::ConstructL() |
68 { |
71 { |
69 FLOG( _L( "[Provisioning] CMbxNbrAdapter::ConstructL:" ) ); |
72 FLOG( _L( "[Provisioning] CMbxNbrAdapter::ConstructL:" ) ); |
70 |
73 |
71 TFileName fileName; |
74 TBool result = HbTextResolverSymbian::Init(KMailboxResourceFileName, KMailboxResourceFilePath ); |
72 Dll::FileName( fileName ); |
75 _LIT(KMailboxAdapter, "txt_device_update_dblist_mailbox_settings"); |
73 iTitle = WPAdapterUtil::ReadHBufCL( fileName, |
76 iTitle = HbTextResolverSymbian::LoadL(KMailboxAdapter); |
74 KAdapterName, |
77 |
75 R_MAILBOX_NUMBER_ADAPTER_TITLE ); |
78 FLOG( _L( "[Provisioning] CMbxNbrAdapter::ConstructL: Done " )); |
76 |
|
77 FLOG( _L( "[Provisioning] CMbxNbrAdapter::ConstructL: Done" ) ); |
|
78 } |
79 } |
79 |
80 |
80 // ----------------------------------------------------------------------------- |
81 // ----------------------------------------------------------------------------- |
81 // CMbxNbrAdapter::NewL |
82 // CMbxNbrAdapter::NewL |
82 // Two-phased constructor. |
83 // Two-phased constructor. |