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

bool MtpDevice::UpdateAlbumArt ( MTP::Album in_album,
LIBMTP_filesampledata_t *  in_sample 
)

This function updates the representative sample of album on the device

Parameters:
in_album the album whose art should be updated
in_sample the album art encased in a LIBMTP_filesampledata_t* struct
Returns:
true if the operation succeeded, false otherwise

Definition at line 865 of file MtpDevice.cpp.

References processErrorStack(), and MTP::Album::SetCover().

{
  int ret = LIBMTP_Send_Representative_Sample(_device,
                                              in_album->ID(), in_sample);
  if (ret != 0)
  {
    processErrorStack();
    return false;
  }
  in_album->SetCover(in_sample);
  return true;
}


Generated by  Doxygen 1.6.0   Back to index