mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/csendobject.cpp
changeset 48 b7b49303d0c0
parent 35 2ee890d2f7e7
child 50 762d760dcfdf
equal deleted inserted replaced
45:09978a29cfde 48:b7b49303d0c0
   605             iConnection );
   605             iConnection );
   606 
   606 
   607         SendResponseL( EMTPRespCodeOK );
   607         SendResponseL( EMTPRespCodeOK );
   608         }
   608         }
   609 
   609 
       
   610     iCancelled = EFalse;
       
   611 
   610     PRINT1( _L( "MM MTP <= CSendObject::DoHandleResponsePhaseObjectL result = %d" ), result );
   612     PRINT1( _L( "MM MTP <= CSendObject::DoHandleResponsePhaseObjectL result = %d" ), result );
   611 
   613 
   612     return result;
   614     return result;
   613     }
   615     }
   614 
   616 
  1065             {
  1067             {
  1066             PRINT( _L( "MM MTP <> might happen if function is called before physical file arrives" ) );
  1068             PRINT( _L( "MM MTP <> might happen if function is called before physical file arrives" ) );
  1067             // might happen if function is called before physical file arrives
  1069             // might happen if function is called before physical file arrives
  1068             // do nothing
  1070             // do nothing
  1069             }
  1071             }
       
  1072         else if ( iObjectFormat == EMTPFormatCodeASF )
       
  1073             {
       
  1074             // happens on some buggy PC implementation, default formatcode to WMA or WMV if extension matches
       
  1075             PRINT( _L( "MM MTP <> happens on some buggy PC implementation, default formatcode to WMA or WMV if extension matches" ) );
       
  1076             if ( parser.Ext().CompareF( KTxtExtensionWMA ) == 0 )
       
  1077                 iObjectFormat = EMTPFormatCodeWMA;
       
  1078             else if ( parser.Ext().CompareF( KTxtExtensionWMV ) == 0 )
       
  1079                 iObjectFormat = EMTPFormatCodeWMV;
       
  1080             else
       
  1081                 result = EFalse;
       
  1082             }
  1070         else
  1083         else
  1071             {
  1084             {
  1072             PRINT2( _L( "MM MTP <> %S does not match 0x%x" ), &iFullPath, iObjectFormat );
  1085             PRINT2( _L( "MM MTP <> %S does not match 0x%x" ), &iFullPath, iObjectFormat );
  1073             result = EFalse;
  1086             result = EFalse;
  1074             }
  1087             }