Logo Search packages:      
Sourcecode: k9copy version File versions  Download package

int K3bDevice::Device::copyrightProtectionSystemType (  )  const

Returns:
  • -1 on error (no DVD)
  • 1 (CSS/CPPM)
  • 2 (CPRM) if scrambled
  • 0 otherwise

Definition at line 3077 of file k3bdevice.cpp.

References readDvdStructure().

{
  unsigned char* dvdheader = 0;
  int dataLen = 0;
  if( readDvdStructure( &dvdheader, dataLen, 0x1 ) ) {
    int ret = -1;
    if( dataLen >= 6 )
      ret = dvdheader[4];
    delete [] dvdheader;
    return ret;
  }
  else
    return -1;
}


Generated by  Doxygen 1.6.0   Back to index