Go to the documentation of this file.
9 #include <taglib/id3v1tag.h>
10 #include <taglib/id3v2tag.h>
16 #include <textidentificationframe.h>
17 #include <attachedpictureframe.h>
18 #include <popularimeterframe.h>
57 bool OpenFile(
const QString &
filename,
bool forWriting =
false);
61 TagLib::ID3v2::Tag* GetID3v2Tag(
bool create =
false);
62 TagLib::ID3v1::Tag* GetID3v1Tag(
bool create =
false);
64 static bool writePlayCount(TagLib::ID3v2::Tag *tag,
int playcount);
65 static bool writeRating(TagLib::ID3v2::Tag *tag,
int rating);
66 static bool writeLastPlay(TagLib::ID3v2::Tag *tag, QDateTime lastPlay);
68 static AlbumArtList readAlbumArt(TagLib::ID3v2::Tag *tag);
69 static TagLib::ID3v2::UserTextIdentificationFrame*
find(TagLib::ID3v2::Tag *tag,
70 const TagLib::String &description);
71 static TagLib::ID3v2::PopularimeterFrame* findPOPM(TagLib::ID3v2::Tag *tag,
const TagLib::String &
email);
72 static TagLib::ID3v2::AttachedPictureFrame* findAPIC(TagLib::ID3v2::Tag *tag,
73 TagLib::ID3v2::AttachedPictureFrame::Type
type,
74 const TagLib::String &description = TagLib::String());
75 static QString getExtFromMimeType(
const QString &mimeType);
77 TagLib::File *m_file {
nullptr};
79 enum TagType : std::uint8_t { kMPEG, kFLAC };
def rating(profile, smoonURL, gate)
static pid_list_t::iterator find(const PIDInfoMap &map, pid_list_t &list, pid_list_t::iterator begin, pid_list_t::iterator end, bool find_open)