mpxmusicplayer/commonui/src/mpxcommonuihelper.cpp
branchRCL_3
changeset 24 26a1709b9fec
parent 15 a1247965635c
equal deleted inserted replaced
23:455f89b7fcc5 24:26a1709b9fec
    77 #include "mpxtlshelper.h"
    77 #include "mpxtlshelper.h"
    78 #include "mpxcommonuihelper.h"
    78 #include "mpxcommonuihelper.h"
    79 #include "mpxdrmuihelper.h"
    79 #include "mpxdrmuihelper.h"
    80 #include "mpxinternalcrkeys.h"
    80 #include "mpxinternalcrkeys.h"
    81 #include "mpxlog.h"
    81 #include "mpxlog.h"
    82 
    82 #include <gfxtranseffect/gfxtranseffect.h>  // For transition effects
    83 
    83 
    84 // CONSTANTS
    84 // CONSTANTS
    85 const TInt KMPXOneSecInMicroSecs( 1000000 );
    85 const TInt KMPXOneSecInMicroSecs( 1000000 );
    86 const TInt KMPXOneMinInSeconds( 60 );
    86 const TInt KMPXOneMinInSeconds( 60 );
    87 const TInt KMPXOneHourInSeconds( 3600 );
    87 const TInt KMPXOneHourInSeconds( 3600 );
  1307         case KErrCAOutOfRange:
  1307         case KErrCAOutOfRange:
  1308         case KErrCAPendingRights:
  1308         case KErrCAPendingRights:
  1309         case KErrCASizeNotDetermined:
  1309         case KErrCASizeNotDetermined:
  1310         case KErrCANewFileHandleRequired:
  1310         case KErrCANewFileHandleRequired:
  1311             {
  1311             {
       
  1312             GfxTransEffect::AbortFullScreen();
  1312             TRAPD(err, ret = iMpxDrmHelper->HandleDrmErrorL( aError, aMedia, aFile ));
  1313             TRAPD(err, ret = iMpxDrmHelper->HandleDrmErrorL( aError, aMedia, aFile ));
  1313             if (err)
  1314             if (err)
  1314                 {
  1315                 {
  1315                 ret = err;
  1316                 ret = err;
  1316                 if ( ret == KErrArgument )
  1317                 if ( ret == KErrArgument )
  1382             			  	                    trackTitle );
  1383             			  	                    trackTitle );
  1383             	    }
  1384             	    }
  1384                 }
  1385                 }
  1385             break;
  1386             break;
  1386             }
  1387             }
  1387         case KErrLocked:
  1388         case KErrLocked: 
  1388             errorText = StringLoader::LoadLC( R_MPX_CANNOT_PROCEED_WITH_OPERATION );
  1389             //KErrLocked only happen if MTP is connected but no active sync on going.        
       
  1390             errorText = StringLoader::LoadLC( R_MUS_NOTE_CANCELLED_DUE_TO_MTP );
  1389             break;
  1391             break;
  1390         case KErrDisMounted:
  1392         case KErrDisMounted:
  1391         	break;
  1393         	break;
  1392         case KErrDiskFull:
  1394         case KErrDiskFull:
  1393         case KSQLErrGeneral:
  1395         case KSQLErrGeneral: