mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/mediamtpdataprovider/src/cmediamtpdataprovidergetobjectpropvalue.cpp
branchRCL_3
changeset 14 05b0d2323768
parent 9 bee149131e4b
child 17 780c925249c1
equal deleted inserted replaced
9:bee149131e4b 14:05b0d2323768
    78     CGetObjectPropValue( aFramework, aConnection, aDpConfig )
    78     CGetObjectPropValue( aFramework, aConnection, aDpConfig )
    79     {
    79     {
    80     // Do nothing
    80     // Do nothing
    81     }
    81     }
    82 
    82 
    83 void CMediaMtpDataProviderGetObjectPropValue::ServiceSpecificObjectPropertyL(TUint16 aPropCode)
    83 void CMediaMtpDataProviderGetObjectPropValue::ServiceSpecificObjectPropertyL( TUint16 aPropCode )
    84     {
    84     {
    85     PRINT( _L( "MM MTP => CMediaMtpDataProviderGetObjectPropValue::ServiceSpecificObjectPropertyL" ) );
    85     PRINT( _L( "MM MTP => CMediaMtpDataProviderGetObjectPropValue::ServiceSpecificObjectPropertyL" ) );
    86     switch ( aPropCode )
    86     switch ( aPropCode )
    87         {
    87         {
    88         case EMTPObjectPropCodeArtist: // 0xDC46
    88         case EMTPObjectPropCodeArtist: // 0xDC46
   149         case EMTPExtObjectPropCodeOmaDrmStatus:
   149         case EMTPExtObjectPropCodeOmaDrmStatus:
   150             {
   150             {
   151             TInt drmStatus = MmMtpDpUtility::GetDrmStatus( iObjectInfo->DesC( CMTPObjectMetaData::ESuid ) );
   151             TInt drmStatus = MmMtpDpUtility::GetDrmStatus( iObjectInfo->DesC( CMTPObjectMetaData::ESuid ) );
   152             iMTPTypeUint8.Set( 0 );
   152             iMTPTypeUint8.Set( 0 );
   153 
   153 
   154             if (drmStatus == EMTPDrmStatusProtected)
   154             if ( drmStatus == EMTPDrmStatusProtected )
   155                 iMTPTypeUint8.Set( 1 );
   155                 iMTPTypeUint8.Set( 1 );
   156 
   156 
   157             SendDataL( iMTPTypeUint8 );
   157             SendDataL( iMTPTypeUint8 );
   158             }
   158             }
   159             break;
   159             break;