equal
deleted
inserted
replaced
18 #include "atcodec.h" |
18 #include "atcodec.h" |
19 #include "btmcoperator.h" |
19 #include "btmcoperator.h" |
20 #include "btmcprotocol.h" |
20 #include "btmcprotocol.h" |
21 #include <mmtsy_names.h> |
21 #include <mmtsy_names.h> |
22 #include "debug.h" |
22 #include "debug.h" |
|
23 #include <utf.h> |
23 |
24 |
24 // ----------------------------------------------------------------------------- |
25 // ----------------------------------------------------------------------------- |
25 // CBtmcOperator::NewL |
26 // CBtmcOperator::NewL |
26 // ----------------------------------------------------------------------------- |
27 // ----------------------------------------------------------------------------- |
27 CBtmcOperator* CBtmcOperator::NewL( |
28 CBtmcOperator* CBtmcOperator::NewL( |
88 |
89 |
89 if (iStatus == KErrNone) |
90 if (iStatus == KErrNone) |
90 { |
91 { |
91 LEAVE_IF_ERROR(params.Append(TATParam(0))); |
92 LEAVE_IF_ERROR(params.Append(TATParam(0))); |
92 TBuf8<KMaxOperatorNameLength> buf8; |
93 TBuf8<KMaxOperatorNameLength> buf8; |
93 buf8.Copy(iInfo.iName); // need Unicode convert? |
94 buf8.Copy(iInfo.iName); // Unicode convert: |
94 LEAVE_IF_ERROR(params.Append(TATParam(buf8, EATDQStringParam))); |
95 TBuf16<KMaxOperatorNameLength> buf16; |
|
96 TBuf8<KMaxOperatorNameLength> buf8Copy; |
|
97 LEAVE_IF_ERROR(CnvUtfConverter::ConvertToUnicodeFromUtf8(buf16,buf8)); |
|
98 buf8Copy.Copy(buf16); |
|
99 LEAVE_IF_ERROR(params.Append(TATParam(buf8Copy, EATDQStringParam))); |
95 } |
100 } |
96 else |
101 else |
97 { |
102 { |
98 LEAVE_IF_ERROR(params.Append(TATParam())); |
103 LEAVE_IF_ERROR(params.Append(TATParam())); |
99 LEAVE_IF_ERROR(params.Append(TATParam())); |
104 LEAVE_IF_ERROR(params.Append(TATParam())); |