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

void MtpDevice::processErrorStack (  )  [private]

Gets the device's error stack and runs over each error to store its text internally and then clears the device's error stack

Definition at line 323 of file MtpDevice.cpp.

Referenced by AddTrackToAlbum(), DefaultJPEGSample(), Fetch(), NewAlbum(), removeObject(), RemoveTrack(), TransferFile(), TransferTrack(), UpdateAlbumArt(), and UpdateSpaceInformation().

{
  if (!_device)
    return;
  LIBMTP_error_t* es = LIBMTP_Get_Errorstack(_device);
  while (es)
  {
    string s(es->error_text);
    _errorStack.push_back(s);
    es = es->next;
    cout << "Qlix MTP ERROR: " << s << endl;
  }

  LIBMTP_Clear_Errorstack(_device);
}


Generated by  Doxygen 1.6.0   Back to index