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
TagWrapper Class Reference

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

#include <tagwrapper.h>

Public Types

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

Public Member Functions

 TagWrapper ()
 
 TagWrapper (const QString &file)
 
bool readFile ()
 
bool readFile (const QString &path)
 
bool writeMusicTag (Type tag, const QString &value, int id3v2Version)
 
QMap< Type, QString > musicTags () const
 

Protected Attributes

QString m_path
 
QMap< Type, QString > m_parameters
 

Detailed Description

The class of the file tag wrapper.

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

Definition at line 28 of file tagwrapper.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

Definition at line 31 of file tagwrapper.h.

Constructor & Destructor Documentation

TagWrapper::TagWrapper ( )
TagWrapper::TagWrapper ( const QString &  file)
explicit

Member Function Documentation

QMap<Type, QString> TagWrapper::musicTags ( ) const
inline

Definition at line 57 of file tagwrapper.h.

bool TagWrapper::readFile ( )
bool TagWrapper::readFile ( const QString &  path)
bool TagWrapper::writeMusicTag ( Type  tag,
const QString &  value,
int  id3v2Version 
)

Member Data Documentation

QMap<Type, QString> TagWrapper::m_parameters
protected

Definition at line 61 of file tagwrapper.h.

QString TagWrapper::m_path
protected

Definition at line 60 of file tagwrapper.h.


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