Go to the documentation of this file.
16 #include <textidentificationframe.h>
17 #include <attachedpictureframe.h>
18 #include <popularimeterframe.h>
24 using TagLib::ID3v2::UserTextIdentificationFrame;
25 using TagLib::ID3v2::TextIdentificationFrame;
26 using TagLib::ID3v2::PopularimeterFrame;
27 using TagLib::ID3v2::AttachedPictureFrame;
62 bool OpenFile(
const QString &
filename,
bool forWriting =
false);
66 TagLib::ID3v2::Tag* GetID3v2Tag(
bool create =
false);
67 TagLib::ID3v1::Tag* GetID3v1Tag(
bool create =
false);
69 static bool writePlayCount(TagLib::ID3v2::Tag *tag,
int playcount);
70 static bool writeRating(TagLib::ID3v2::Tag *tag,
int rating);
71 static bool writeLastPlay(TagLib::ID3v2::Tag *tag, QDateTime lastPlay);
73 static AlbumArtList readAlbumArt(TagLib::ID3v2::Tag *tag);
74 static UserTextIdentificationFrame*
find(TagLib::ID3v2::Tag *tag,
75 const String &description);
76 static PopularimeterFrame* findPOPM(TagLib::ID3v2::Tag *tag,
const String &
email);
77 static AttachedPictureFrame* findAPIC(TagLib::ID3v2::Tag *tag,
78 AttachedPictureFrame::Type
type,
79 const String &description = String());
80 static QString getExtFromMimeType(
const QString &mimeType);
82 TagLib::File *m_file {
nullptr};
84 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)