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

bool MtpDevice::Fetch ( uint32_t  in_id,
char const * const  path 
)

Retrieves the object to the specificed path

Parameters:
in_id the item id of the requested Mtp object
path the path to retreive to
Returns:
true if the fetch was successfull or false otherwise

Definition at line 219 of file MtpDevice.cpp.

References processErrorStack().

{
  if (!_device)
    return false;
//TODO get error log
  int ret= LIBMTP_Get_File_To_File(_device, in_id, path, 
                                   _progressFunc, _progressData);
  if (ret != 0)
  {
    processErrorStack();
    return false;
  }
  return true; 
}


Generated by  Doxygen 1.6.0   Back to index