TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Types | Public Member Functions | Protected Attributes | List of all members
TagMeta Class Reference

The class of the file tag meta. More...

#include <tagmeta.h>

Public Types

enum  Type {
  TITLE, ARTIST, ALBUM, COMMENT,
  GENRE, YEAR, TRACK, RATING,
  URL, LENGTH, FORMAT, SAMPLERATE,
  MODE, BITRATE, CHANNEL, DESCRIPTION
}
 

Public Member Functions

 TagMeta ()=default
 
 TagMeta (const QString &file)
 
bool read ()
 
bool write (Type tag, const QString &value, int id3v2Version)
 

Protected Attributes

QString m_path
 
QMap< Type, QString > m_parameters
 

Detailed Description

The class of the file tag meta.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 28 of file tagmeta.h.

Member Enumeration Documentation

Enumerator
TITLE 

Title

ARTIST 

Artist

ALBUM 

Album

COMMENT 

Comment

GENRE 

Genre

YEAR 

Year

TRACK 

Track number

RATING 

Popularimeter

URL 

Stream url or local file path

LENGTH 

Length

FORMAT 

Format

SAMPLERATE 

Sample rate

MODE 

Mode

BITRATE 

Bitrate

CHANNEL 

Channel

DESCRIPTION 

Description

Definition at line 31 of file tagmeta.h.

Constructor & Destructor Documentation

TagMeta::TagMeta ( )
default
TagMeta::TagMeta ( const QString &  file)
explicit

Member Function Documentation

bool TagMeta::read ( )
bool TagMeta::write ( Type  tag,
const QString &  value,
int  id3v2Version 
)

Member Data Documentation

QMap<Type, QString> TagMeta::m_parameters
protected

Definition at line 59 of file tagmeta.h.

QString TagMeta::m_path
protected

Definition at line 58 of file tagmeta.h.


The documentation for this class was generated from the following file: