21 #include "CWPWAPMMSAdapter.h" |
21 #include "CWPWAPMMSAdapter.h" |
22 #include <e32base.h> |
22 #include <e32base.h> |
23 #include <CWPAdapter.h> |
23 #include <CWPAdapter.h> |
24 #include <CWPCharacteristic.h> |
24 #include <CWPCharacteristic.h> |
25 #include <CWPParameter.h> |
25 #include <CWPParameter.h> |
26 #include <wpwapadapterresource.rsg> |
|
27 #include "MWPWAPItemBase.h" |
26 #include "MWPWAPItemBase.h" |
28 #include "WPWAPUtil.h" |
27 #include "WPWAPUtil.h" |
29 #include "WPWAPItemFactory.h" |
28 #include "WPWAPItemFactory.h" |
|
29 #include <hbtextresolversymbian.h> |
30 |
30 |
31 // CONSTANTS |
31 // CONSTANTS |
32 _LIT( KMMSAppID, "w4" ); |
32 _LIT( KMMSAppID, "w4" ); |
|
33 _LIT( KMMSResourceFileName, "deviceupdates_" ); |
|
34 _LIT( KMMSResourceFilePath, "z:/resource/qt/translations/" ); |
33 |
35 |
34 // ============================ MEMBER FUNCTIONS =============================== |
36 // ============================ MEMBER FUNCTIONS =============================== |
35 |
37 |
36 // ----------------------------------------------------------------------------- |
38 // ----------------------------------------------------------------------------- |
37 // CWPWAPMMSAdapter::CWPWAPMMSAdapter |
39 // CWPWAPMMSAdapter::CWPWAPMMSAdapter |
49 // ----------------------------------------------------------------------------- |
51 // ----------------------------------------------------------------------------- |
50 // |
52 // |
51 void CWPWAPMMSAdapter::ConstructL() |
53 void CWPWAPMMSAdapter::ConstructL() |
52 { |
54 { |
53 BaseConstructL(); |
55 BaseConstructL(); |
|
56 |
|
57 TBool result = HbTextResolverSymbian::Init(KMMSResourceFileName, KMMSResourceFilePath); |
|
58 _LIT(MMSAdapter, "txt_device_update_dblist_multimedia_access_pts"); |
|
59 iTitle = HbTextResolverSymbian::LoadL(MMSAdapter); |
|
60 |
|
61 _LIT(MMSDefaultAdapter, "txt_device_update_dblist_wap_access_point"); |
|
62 iTitle = HbTextResolverSymbian::LoadL(MMSDefaultAdapter); |
54 |
63 |
55 iTitle = WPWAPUtil::ReadHBufCL( R_QTN_SM_MMS_ACCESSPOINTS ); |
|
56 iDefaultName = WPWAPUtil::ReadHBufCL( R_QTN_SM_WAPAP_NAME ); |
|
57 } |
64 } |
58 |
65 |
59 // ----------------------------------------------------------------------------- |
66 // ----------------------------------------------------------------------------- |
60 // CWPWAPMMSAdapter::NewL |
67 // CWPWAPMMSAdapter::NewL |
61 // Two-phased constructor. |
68 // Two-phased constructor. |