omadrm/drmengine/ro/src/DrmRightsParser.cpp
branchRCL_3
changeset 27 1481bf457703
parent 26 1221b68b8a5f
equal deleted inserted replaced
26:1221b68b8a5f 27:1481bf457703
  1111                 iRights->iCurrentAsset = CParsedAsset::NewL();
  1111                 iRights->iCurrentAsset = CParsedAsset::NewL();
  1112                 iRights->iCurrentAsset->iId =
  1112                 iRights->iCurrentAsset->iId =
  1113                     GetAttributeValueL( aAttributes, KIdAttribute );
  1113                     GetAttributeValueL( aAttributes, KIdAttribute );
  1114                 iRights->iCurrentAsset->iIdRef =
  1114                 iRights->iCurrentAsset->iIdRef =
  1115                     GetAttributeValueL( aAttributes, KIdRefAttribute );
  1115                     GetAttributeValueL( aAttributes, KIdRefAttribute );
  1116                 iRights->iAssets.AppendL ( iRights->iCurrentAsset );
  1116                 iRights->iAssets.Append( iRights->iCurrentAsset );
  1117                 break;
  1117                 break;
  1118             case EPermissionAssetState:
  1118             case EPermissionAssetState:
  1119                 iRights->iCurrentAsset = CParsedAsset::NewL();
  1119                 iRights->iCurrentAsset = CParsedAsset::NewL();
  1120                 iRights->iCurrentAsset->iId =
  1120                 iRights->iCurrentAsset->iId =
  1121                     GetAttributeValueL( aAttributes, KIdAttribute );
  1121                     GetAttributeValueL( aAttributes, KIdAttribute );
  1124                 iRights->iCurrentPermission->iAssets.Append(
  1124                 iRights->iCurrentPermission->iAssets.Append(
  1125                         iRights->iCurrentAsset );
  1125                         iRights->iCurrentAsset );
  1126                 break;
  1126                 break;
  1127             case EPermissionState:
  1127             case EPermissionState:
  1128                 iRights->iCurrentPermission = CParsedPermission::NewL();
  1128                 iRights->iCurrentPermission = CParsedPermission::NewL();
  1129                 iRights->iPermissions.AppendL ( iRights->iCurrentPermission );
  1129                 iRights->iPermissions.Append(
       
  1130                         iRights->iCurrentPermission );
  1130                 iRights->iCurrentPermission->iOnExpiredUrl =
  1131                 iRights->iCurrentPermission->iOnExpiredUrl =
  1131                     GetAttributeValueL( aAttributes, KOnExpiredUrlAttribute );
  1132                     GetAttributeValueL( aAttributes, KOnExpiredUrlAttribute );
  1132                 break;
  1133                 break;
  1133             case ESoftwareState:
  1134             case ESoftwareState:
  1134                 b = GetAttributeValueL( aAttributes, KSchemaAttribute );
  1135                 b = GetAttributeValueL( aAttributes, KSchemaAttribute );