1 #ifndef MUSICSONGMETA_H
2 #define MUSICSONGMETA_H
46 bool read(
const QString &url);
55 QString filePath()
const noexcept;
59 QString fileBasePath() noexcept;
63 QString fileRelatedPath() noexcept;
68 QString artist() noexcept;
72 QString title() noexcept;
76 QString album() noexcept;
80 QString comment() noexcept;
84 QString year() noexcept;
88 QString trackNum() noexcept;
92 QString genre() noexcept;
96 QString rating() noexcept;
100 QString channel() noexcept;
109 void setArtist(
const QString &artist) noexcept;
113 void setTitle(
const QString &title) noexcept;
117 void setAlbum(
const QString &album) noexcept;
121 void setComment(
const QString &comment) noexcept;
125 void setYear(
const QString &year) noexcept;
129 void setTrackNum(
const QString &track) noexcept;
133 void setGenre(
const QString &genre) noexcept;
137 void setRating(
const QString &rating) noexcept;
143 void setCover(
const QPixmap &cover) noexcept;
147 void setCover(
const QByteArray &data) noexcept;
151 QPixmap cover() noexcept;
155 QString lyrics() noexcept;
159 QString sampleRate() noexcept;
163 QString bitrate() noexcept;
167 QString duration() noexcept;
180 void setSongMetaIndex(
int index) noexcept;
184 int songMetaCount()
const noexcept;
190 void clearSongMeta() noexcept;
202 bool readInformation();
206 bool saveInformation();
214 #endif // MUSICSONGMETA_H
#define TTK_MODULE_EXPORT
#define TTK_DECLARE_MODULE(Class)