--- a/phoneengine/loghandling/src/cpeloghandling.cpp Fri Sep 17 17:09:12 2010 +0300
+++ b/phoneengine/loghandling/src/cpeloghandling.cpp Mon Oct 04 16:06:10 2010 +0300
@@ -32,6 +32,7 @@
#include <pepanic.pan>
#include <mpephonemodelinternal.h>
#include <mpedatastore.h>
+#include <hbtextresolversymbian.h>
#include "cpeloginfo.h"
#include "cpelogextensionwrapper.h"
@@ -42,7 +43,9 @@
/// None
// CONSTANTS
-// None
+_LIT(KEmergencyText, "txt_phone_other_emergency_call");
+_LIT(KPhoneLocalisationFile, "telephone_");
+_LIT(KTsFilePath, "z:/resource/qt/translations/");
// MACROS
// None
@@ -117,8 +120,7 @@
RFs& aFsSession
) : iModel( aModel ),
iDataStore( *( aModel.DataStore( ) ) ),
- iFsSession( aFsSession ),
- iLogEventUnderProcessing( NULL )
+ iFsSession( aFsSession )
{
TEFLOGSTRING( KTAOBJECT, "LOG CPELogHandling::CPELogHandling" );
}
@@ -209,6 +211,11 @@
// default logging strategy is used if error happens while using extension
UpdateLogInfoWithExtensionDataL( aCallId, *logInfo ) );
+ if ( CPELogInfo::EPEEmergecyEvent == logInfo->EventType() )
+ {
+ SetEmergencyCallName( *logInfo );
+ }
+
TRAP( errorCode, SaveCallInfoL( *logInfo ) );
delete logInfo;
}
@@ -841,4 +848,25 @@
return CPELogExtensionWrapper::NewLC( aPluginUid );
}
+// -----------------------------------------------------------------------------
+// CPELogHandling::SetEmergencyCallName
+// -----------------------------------------------------------------------------
+//
+void CPELogHandling::SetEmergencyCallName( CPELogInfo& aLogInfo )
+ {
+ HBufC* emergencyText = NULL;
+
+ if ( HbTextResolverSymbian::Init( KPhoneLocalisationFile, KTsFilePath) )
+ {
+ TRAP_IGNORE( emergencyText =
+ HbTextResolverSymbian::LoadL(KEmergencyText) );
+ }
+
+ if ( emergencyText )
+ {
+ aLogInfo.SetName( emergencyText->Des().
+ Left( Min(emergencyText->Length(), KCntMaxTextFieldLength) ) );
+ }
+ }
+
// End of File