blob: 232de95ea4ebbaa2bdba0e889bb3a123046f1328 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#include "track/albuminfo.h"
namespace mixxx {
bool operator==(const AlbumInfo& lhs, const AlbumInfo& rhs) {
return (lhs.getArtist() == rhs.getArtist()) &&
#if defined(__EXTRA_METADATA__)
(lhs.getCopyright() == rhs.getCopyright()) &&
(lhs.getLicense() == rhs.getLicense()) &&
(lhs.getMusicBrainzArtistId() == rhs.getMusicBrainzArtistId()) &&
(lhs.getMusicBrainzReleaseGroupId() == rhs.getMusicBrainzReleaseGroupId()) &&
(lhs.getMusicBrainzReleaseId() == rhs.getMusicBrainzReleaseId()) &&
(lhs.getRecordLabel() == rhs.getRecordLabel()) &&
(lhs.getReplayGain() == rhs.getReplayGain()) &&
#endif // __EXTRA_METADATA__
(lhs.getTitle() == rhs.getTitle());
}
QDebug operator<<(QDebug dbg, const AlbumInfo& arg) {
dbg << '{';
arg.dbgArtist(dbg);
#if defined(__EXTRA_METADATA__)
arg.dbgCopyright(dbg);
arg.dbgLicense(dbg);
arg.dbgMusicBrainzArtistId(dbg);
arg.dbgMusicBrainzReleaseId(dbg);
arg.dbgMusicBrainzReleaseGroupId(dbg);
arg.dbgRecordLabel(dbg);
arg.dbgReplayGain(dbg);
#endif // __EXTRA_METADATA__
arg.dbgTitle(dbg);
dbg << '}';
return dbg;
}
} // namespace mixxx
|