1 #ifndef MUSICSONGMETA_H
2 #define MUSICSONGMETA_H
45 bool read(
const QString &url);
54 QString filePath()
const noexcept;
58 QString fileBasePath() noexcept;
62 QString fileRelatedPath() noexcept;
67 QString artist() noexcept;
71 QString title() noexcept;
75 QString album() noexcept;
79 QString comment() noexcept;
83 QString year() noexcept;
87 QString trackNum() noexcept;
91 QString genre() noexcept;
95 QString rating() noexcept;
99 QString channel() noexcept;
103 QString format() noexcept;
112 void setArtist(
const QString &artist) noexcept;
116 void setTitle(
const QString &title) noexcept;
120 void setAlbum(
const QString &album) noexcept;
124 void setComment(
const QString &comment) noexcept;
128 void setYear(
const QString &year) noexcept;
132 void setTrackNum(
const QString &track) noexcept;
136 void setGenre(
const QString &genre) noexcept;
140 void setRating(
const QString &rating) noexcept;
146 void setCover(
const QPixmap &cover);
150 void setCover(
const QByteArray &data);
154 QPixmap cover() noexcept;
158 QString lyrics() noexcept;
162 QString sampleRate() noexcept;
166 QString bitrate() noexcept;
170 QString duration() noexcept;
183 void setSongMetaIndex(
int index) noexcept;
187 int songMetaCount()
const noexcept;
193 void clearSongMeta() noexcept;
197 Data *songMeta() noexcept;
205 bool readInformation();
209 bool saveInformation();
217 #endif // MUSICSONGMETA_H
#define TTK_MODULE_EXPORT
The class of the music meta.