dsdcmoadapter/src/nsmldsctrldcmoadapter.cpp
branchRCL_3
changeset 52 4f0867e42d62
parent 51 8e7494275d3a
--- 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 <centralrepository.h>
+#include <dcmo.rsg>
 #include <e32base.h>
 #include <stringresourcereader.h> 
 #include <f32file.h> 
@@ -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);
 }