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

bool K3bDevice::Device::featureCurrent ( unsigned int  feature  )  const

Check if a certain feature is current.

See also:
k3bdevicetypes.h for feature constants.
Returns:
true if the feature and false otherwise (this includes errors)

Definition at line 86 of file k3bdevice_mmc.cpp.

References getFeature().

Referenced by supportsFeature().

{
  unsigned char* data = 0;
  int dataLen = 0;
  if( getFeature( &data, dataLen, feature ) ) {
    bool success = false;
    if( dataLen >= 11 )
      success = ( data[8+2]&1 );  // check the current flag

    delete [] data;

    return success;
  }
  else
    return false;
}


Generated by  Doxygen 1.6.0   Back to index