7 #include <ff7tkutils_export.h>
13 explicit PsfTags(
const QString &lib);
14 bool open(
const QString &config);
16 PsfTags &setLengthS(quint32 seconds);
17 inline PsfTags &
setLib(
const QString &lib) {
return setCustom(QStringLiteral(
"_lib"), lib);}
18 inline PsfTags &
setAuthor(
const QString &author) {
return setCustom(QStringLiteral(
"psfby"), author);}
19 inline PsfTags &
setFade(
int fade) {
return setCustom(QStringLiteral(
"fade"), fade);}
20 inline PsfTags &
setVolume(
int volume) {
return setCustom(QStringLiteral(
"volume"), volume);}
21 inline PsfTags &
setTitle(
const QString &title) {
return setCustom(QStringLiteral(
"title"), title);}
22 inline PsfTags &
setArtist(
const QString &artist) {
return setCustom(QStringLiteral(
"artist"), artist);}
23 inline PsfTags &
setGame(
const QString &game) {
return setCustom(QStringLiteral(
"game"), game);}
24 inline PsfTags &
setGenre(
const QString &genre) {
return setCustom(QStringLiteral(
"genre"), genre);}
25 inline PsfTags &
setComment(
const QString &comment) {
return setCustom(QStringLiteral(
"comment"), comment);}
26 inline PsfTags &
setYear(
int year) {
return setCustom(QStringLiteral(
"year"), year);}
27 inline PsfTags &
setCopyright(
const QString ©right) {
return setCustom(QStringLiteral(
"copyright"), copyright);}
32 _tags.insert(name, value);
36 PsfTags &setReplayGain(
const QString &type,
double gain_db,
double peak);
37 QMap<QString, QString> _tags;
45 static PsfFile fromAkao(
const QByteArray &akaoData,
const PsfTags &tags);
46 bool open(
const QByteArray &data);
47 QByteArray save()
const;
48 inline const QByteArray &
data()
const {
51 inline QByteArray &
data() {
54 inline const QByteArray &
special()
const {
63 QByteArray akao()
const;
65 QByteArray _special, _data;