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

void MTP::Album::AddTrack ( Track in_track  ) 

Adds the passed track as a subtrack to this album The caller must ensure that the album is then updated on the device If the gui is adding a track, you must first add the track to the raw folder before adding it to the wrapper

Parameters:
in_track the track to add as a subtrack to this folder

Definition at line 453 of file MtpObject.cpp.

References MTP::Track::SetParentAlbum(), and MTP::Track::SetRowIndex().

Referenced by MtpDevice::createTrackBasedStructures().

{
  in_track->SetParentAlbum(this);
  //row index is not _childTracks.size() +1 as it is zero based..
  in_track->SetRowIndex( _childTracks.size());
  _childTracks.push_back(in_track);
}


Generated by  Doxygen 1.6.0   Back to index