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

QValueList< int > K3bDevice::Device::determineSupportedWriteSpeeds (  )  const

Returnes the list of supported writing speeds as reported by mode page 2Ah.

This only works with MMC3 compliant drives.

Definition at line 2737 of file k3bdevice.cpp.

References burner(), and isDVD().

Referenced by determineMaximalWriteSpeed().

{
  QValueList<int> ret;

  if( burner() ) {
    bool dvd = isDVD();

    //
    // Tests with all my drives resulted in 2A for CD and GET PERFORMANCE for DVD media
    // as the valid method of speed detection.
    //
    if( !dvd ) {
      if( !getSupportedWriteSpeedsVia2A( ret, false ) )
      getSupportedWriteSpeedsViaGP( ret, false );
    }
    else {
      if( !getSupportedWriteSpeedsViaGP( ret, true ) )
      getSupportedWriteSpeedsVia2A( ret, true );
    }
  }

  return ret;
}


Generated by  Doxygen 1.6.0   Back to index