blob: 7fe14602f7b8308e9d22bb67c84b273c2fb2abb9 (
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
38
39
40
41
42
43
|
#include "track/albuminfo.h"
namespace mixxx {
void AlbumInfo::resetUnsupportedValues() {
setCopyright(QString());
setLicense(QString());
setMusicBrainzArtistId(QString());
setMusicBrainzReleaseId(QString());
setMusicBrainzReleaseGroupId(QString());
setRecordLabel(QString());
setReplayGain(ReplayGain());
}
bool operator==(const AlbumInfo& lhs, const AlbumInfo& rhs) {
return (lhs.getArtist() == rhs.getArtist()) &&
(lhs.getCopyright() == rhs.getCopyright()) &&
(lhs.getLicense() == rhs.getLicense()) &&
(lhs.getMusicBrainzArtistId() == rhs.getMusicBrainzArtistId()) &&
(lhs.getMusicBrainzReleaseId() == rhs.getMusicBrainzReleaseId()) &&
(lhs.getMusicBrainzReleaseGroupId() == rhs.getMusicBrainzReleaseGroupId()) &&
(lhs.getRecordLabel() == rhs.getRecordLabel()) &&
(lhs.getReplayGain() == rhs.getReplayGain()) &&
(lhs.getTitle() == rhs.getTitle());
}
QDebug operator<<(QDebug dbg, const AlbumInfo& arg) {
dbg << '{';
arg.dbgArtist(dbg);
arg.dbgCopyright(dbg);
arg.dbgLicense(dbg);
arg.dbgMusicBrainzArtistId(dbg);
arg.dbgMusicBrainzReleaseId(dbg);
arg.dbgMusicBrainzReleaseGroupId(dbg);
arg.dbgRecordLabel(dbg);
arg.dbgReplayGain(dbg);
arg.dbgTitle(dbg);
dbg << '}';
return dbg;
}
} // namespace mixxx
|