dsdcmoadapter/src/nsmldsctrldcmoadapter.cpp
changeset 44 8f5e655bff70
parent 0 dab8a81a92de
child 46 38e18a8b16c7
--- a/dsdcmoadapter/src/nsmldsctrldcmoadapter.cpp	Tue Jul 13 03:39:25 2010 +0530
+++ b/dsdcmoadapter/src/nsmldsctrldcmoadapter.cpp	Fri Jul 23 22:01:55 2010 +0530
@@ -25,6 +25,7 @@
 
 //USER INCLUDES
 #include "nsmldsctrldcmoadapter.h"
+#include "hbtextresolversymbian.h"
 
 // CONSTANTS
 const TUid KCRUidDSDCMOConfig = { 0x20022FC0 };
@@ -33,9 +34,11 @@
 // Name of the Plug-in adapter
 _LIT(KNsmlDesktopSyncTitle, "Desktop Sync"); 
 // Description for Desktop Sync adapter
-_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" );
+_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/" );	
 
 // ============================ MEMBER FUNCTIONS ===============================
 
@@ -215,14 +218,7 @@
 //
 void CNsmlDsCtrlDCMOAdapter::GetLocalizedNameL (HBufC*& aLocName)
 {
-	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);
+	TBool result = HbTextResolverSymbian::Init(KdcmoResourceFileName, KdcmoResourceFilePath );				
+	_LIT(KTextDesktopSync, "txt_device_update_info_desktop_sync");
+	aLocName = HbTextResolverSymbian::LoadL(KTextDesktopSync);
 }