Sayonara Player
Public Member Functions | List of all members
Library::MergeData Class Reference

Changes all metadata containing one of the source ids and replaces it with the target id. For example, 3 different artists are merged into one. More...

#include <MergeData.h>

Public Member Functions

 MergeData (const Util::Set< Id > &sourceIds, Id targetId, LibraryId libraryId)
 Merges source_ids into target_id. More...
 
 MergeData (const MergeData &other)
 
MergeDataoperator= (const MergeData &other)
 
bool isValid () const
 target_id >= 0, source_ids.size() > 1, source_ids >= 0 More...
 
Util::Set< Id > sourceIds () const
 getter for source_ids. See constructor
 
Id targetId () const
 getter for target_id. See constructor
 
LibraryId libraryId () const
 getter for library_d. See constructor
 

Detailed Description

Changes all metadata containing one of the source ids and replaces it with the target id. For example, 3 different artists are merged into one.

Constructor & Destructor Documentation

◆ MergeData()

Library::MergeData::MergeData ( const Util::Set< Id > &  sourceIds,
Id  targetId,
LibraryId  libraryId 
)

Merges source_ids into target_id.

Parameters
sourceids
targetids
libraryId,canbe -1

Member Function Documentation

◆ isValid()

bool Library::MergeData::isValid ( ) const

target_id >= 0, source_ids.size() > 1, source_ids >= 0

Returns