omads/omadsextensions/adapters/mms/src/omadsfolderobject.cpp
branchRCL_3
changeset 24 8e7494275d3a
parent 0 dab8a81a92de
child 25 4f0867e42d62
equal deleted inserted replaced
23:2bb96f4ecad8 24:8e7494275d3a
   254         error = converter.ConvertToUnicodeFromUtf8( buf, aBuf.Mid( aStart, aLength ) );
   254         error = converter.ConvertToUnicodeFromUtf8( buf, aBuf.Mid( aStart, aLength ) );
   255         TInt length = buf.Length() + iName.Length();
   255         TInt length = buf.Length() + iName.Length();
   256         
   256         
   257         if ( error > 0 )
   257         if ( error > 0 )
   258             {
   258             {
   259             LOGGER_MSG_EC("Too long name, number of uncorverted bytes: %d", error);
   259             LOGGER_WRITE_1("Too long name, number of uncorverted bytes: %d", error);
   260             }
   260             }
   261         else if ( error != KErrNone )
   261         else if ( error != KErrNone )
   262             {
   262             {
   263             LOGGER_MSG_EC("ConvertToUnicodeFromUtf8 failed with %d", error);
   263             LOGGER_WRITE_1("ConvertToUnicodeFromUtf8 failed with %d", error);
   264             iError = error;
   264             iError = error;
   265             }
   265             }
   266         else if ( length > iName.MaxLength() )
   266         else if ( length > iName.MaxLength() )
   267             {
   267             {
   268             LOGGER_MSG_EC("Too long name total: %d", length);
   268             LOGGER_WRITE_1("Too long name total: %d", length);
   269             }
   269             }
   270         else
   270         else
   271             {
   271             {
   272             iName.Append( buf );
   272             iName.Append( buf );
   273             }       
   273             }