52 explicit MetaData(
const QString& path);
60 QString title()
const;
61 void setTitle(
const QString& title);
63 QString artist()
const;
64 void setArtist(
const QString& artist);
65 ArtistId artistId()
const;
66 void setArtistId(ArtistId
id);
68 QString album()
const;
69 void setAlbum(
const QString& album);
70 AlbumId albumId()
const;
71 void setAlbumId(AlbumId
id);
73 const QString& comment()
const;
74 void setComment(
const QString& comment);
76 QString filepath()
const;
77 [[nodiscard]] HashValue filepathHash()
const;
78 QString setFilepath(
const QString& filepath,
RadioMode mode = RadioMode::Undefined);
80 ArtistId albumArtistId()
const;
81 QString albumArtist()
const;
83 void setAlbumArtist(
const QString& albumArtist, ArtistId
id = -1);
84 void setAlbumArtistId(ArtistId
id);
86 void setRadioStation(
const QString& url,
const QString& name = QString());
87 QString radioStation()
const;
88 QString radioStationName()
const;
93 bool isUpdatable()
const;
94 void setUpdateable(
bool b);
98 bool operator==(
const MetaData& other)
const;
99 bool operator!=(
const MetaData& other)
const;
100 bool isEqual(
const MetaData& other)
const;
101 bool isEqualDeep(
const MetaData& md)
const;
105 bool hasGenre(
const Genre& genre)
const;
106 bool removeGenre(
const Genre& genre);
107 bool addGenre(
const Genre& genre);
109 void setGenres(
const QStringList& newGenres);
111 void setCreatedDate(uint64_t t);
112 uint64_t createdDate()
const;
113 QDateTime createdDateTime()
const;
115 void setModifiedDate(uint64_t t);
116 uint64_t modifiedDate()
const;
117 QDateTime modifiedDateTime()
const;
119 QString genresToString()
const;
120 QStringList genresToList()
const;
122 Disc discnumber()
const;
123 void setDiscnumber(
const Disc& value);
125 Disc discCount()
const;
126 void setDiscCount(
const Disc& value);
128 Bitrate bitrate()
const;
129 void setBitrate(
const Bitrate& value);
131 TrackNum trackNumber()
const;
132 void setTrackNumber(
const uint16_t& value);
135 void setYear(
const uint16_t& value);
137 Filesize filesize()
const;
138 void setFilesize(
const Filesize& value);
140 Rating rating()
const;
141 void setRating(
const Rating& value);
143 MilliSeconds durationMs()
const;
144 void setDurationMs(
const MilliSeconds& value);
146 bool isExtern()
const;
147 void setExtern(
bool value);
149 bool isDisabled()
const;
150 void setDisabled(
bool value);
152 LibraryId libraryId()
const;
153 void setLibraryid(
const LibraryId& value);
156 void setId(
const TrackID& value);