mpxmusicplayer/commonui/src/mpxcommonuihelper.cpp
branchRCL_3
changeset 21 a1247965635c
parent 15 171e07ac910f
child 50 26a1709b9fec
--- a/mpxmusicplayer/commonui/src/mpxcommonuihelper.cpp	Wed Apr 14 15:54:18 2010 +0300
+++ b/mpxmusicplayer/commonui/src/mpxcommonuihelper.cpp	Tue Apr 27 16:34:37 2010 +0300
@@ -1364,6 +1364,26 @@
             usingGlobalNote = ETrue;
             break;
             }
+        case KMPXErrorExpiredRights:
+            {
+            // if cannot retrieve value from aMedia, use invalid_group error	
+			if( !aMedia )
+			    {
+			    errorText = StringLoader::LoadLC( R_MPX_INVALID_GROUP_TEXT );
+			    }	
+			else
+				{
+				if ( aMedia->IsSupported( KMPXMediaGeneralTitle ) )
+				    {
+            		const TDesC& trackTitle( aMedia->ValueText( 
+            			                           KMPXMediaGeneralTitle ) );
+            	    errorText = StringLoader::LoadLC( 
+            		                            R_MPX_DRM_EXPIRED_PLAYBACK, 
+            			  	                    trackTitle );
+            	    }
+                }
+            break;
+            }
         case KErrLocked:
             errorText = StringLoader::LoadLC( R_MPX_CANNOT_PROCEED_WITH_OPERATION );
             break;