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

bool K3bDevice::Device::rewritable (  )  const

Returns:
true if inserted media is rewritable.

Definition at line 1480 of file k3bdevice.cpp.

References readDiscInfo().

{
  unsigned char* data = 0;
  int dataLen = 0;

  if( readDiscInfo( &data, dataLen ) ) {
    disc_info_t* inf = (disc_info_t*)data;
    bool e = inf->erasable;

    delete [] data;

    return e;
  }
  else
    return false;
}


Generated by  Doxygen 1.6.0   Back to index