diff -r 8e7494275d3a -r 4f0867e42d62 dsdcmoadapter/src/nsmldsctrldcmoadapter.cpp --- a/dsdcmoadapter/src/nsmldsctrldcmoadapter.cpp Tue Aug 31 15:05:37 2010 +0300 +++ b/dsdcmoadapter/src/nsmldsctrldcmoadapter.cpp Wed Sep 01 12:30:02 2010 +0100 @@ -17,6 +17,7 @@ //SYSTEM INCLUDES #include +#include #include #include #include @@ -24,7 +25,6 @@ //USER INCLUDES #include "nsmldsctrldcmoadapter.h" -#include "hbtextresolversymbian.h" // CONSTANTS const TUid KCRUidDSDCMOConfig = { 0x20022FC0 }; @@ -33,11 +33,9 @@ // Name of the Plug-in adapter _LIT(KNsmlDesktopSyncTitle, "Desktop Sync"); // Description for Desktop Sync adapter -_LIT(KNsmlDSDCMODescription, "Used to enable/disable the Desktop Sync." ); -// Filename in which title is present -_LIT( KdcmoResourceFileName, "deviceupdates_" ); -// Path to the translation file -_LIT( KdcmoResourceFilePath, "z:/resource/qt/translations/" ); +_LIT(KNsmlDSDCMODescription, "Used to enable/disable the Desktop Sync." ); //use Nsml????? +// Path used for fetching the string to be displayed +_LIT( KRuntimeResourceFileName, "z:dcmo.rsc" ); // ============================ MEMBER FUNCTIONS =============================== @@ -217,7 +215,14 @@ // void CNsmlDsCtrlDCMOAdapter::GetLocalizedNameL (HBufC*& aLocName) { - TBool result = HbTextResolverSymbian::Init(KdcmoResourceFileName, KdcmoResourceFilePath ); - _LIT(KTextDesktopSync, "txt_device_update_info_desktop_sync"); - aLocName = HbTextResolverSymbian::LoadL(KTextDesktopSync); + TFileName myFileName; + TParse parseObj; + parseObj.Set( KRuntimeResourceFileName(), &KDC_RESOURCE_FILES_DIR,NULL ); + myFileName = parseObj.FullName(); + CStringResourceReader* readPluginName = CStringResourceReader::NewL( myFileName ); + CleanupStack::PushL(readPluginName); + TPtrC buf; + buf.Set(readPluginName->ReadResourceString(R_DM_RUN_TIME_VAR_DESKTOP_SYNC)); + aLocName = buf.AllocL() ; + CleanupStack::PopAndDestroy(readPluginName); }