TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
TTKThirdParty
TTKqmmp
qmmp
tagwrapper.h
Go to the documentation of this file.
1
/***************************************************************************
2
* This file is part of the TTK qmmp plugin project
3
* Copyright (C) 2015 - 2024 Greedysky Studio
4
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 3 of the License, or
8
* (at your option) any later version.
9
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
15
* You should have received a copy of the GNU General Public License along
16
* with this program; If not, see <http://www.gnu.org/licenses/>.
17
***************************************************************************/
18
19
#ifndef TAGWRAPPER_H
20
#define TAGWRAPPER_H
21
22
#include <QMap>
23
#include "
qmmp.h
"
24
28
class
QMMP_EXPORT
TagWrapper
29
{
30
public
:
31
enum
Type
32
{
33
TITLE
,
34
ARTIST
,
35
ALBUM
,
36
COMMENT
,
37
GENRE
,
38
YEAR
,
39
TRACK
,
40
RATING
,
41
URL
,
42
LENGTH
,
43
FORMAT
,
44
SAMPLERATE
,
45
MODE
,
46
BITRATE
,
47
CHANNEL
48
};
49
50
TagWrapper
();
51
explicit
TagWrapper
(
const
QString &file);
52
53
bool
readFile();
54
bool
readFile(
const
QString &path);
55
56
bool
writeMusicTag(Type tag,
const
QString &value,
int
id3v2Version);
57
inline
QMap<Type, QString>
musicTags
()
const
{
return
m_parameters; }
58
59
protected
:
60
QString
m_path
;
61
QMap<Type, QString>
m_parameters
;
62
63
};
64
65
#endif
TagWrapper::BITRATE
Definition:
tagwrapper.h:46
TagWrapper
The class of the file tag wrapper.
Definition:
tagwrapper.h:28
qmmp.h
TagWrapper::GENRE
Definition:
tagwrapper.h:37
TagWrapper::TRACK
Definition:
tagwrapper.h:39
TagWrapper::m_parameters
QMap< Type, QString > m_parameters
Definition:
tagwrapper.h:61
TagWrapper::TITLE
Definition:
tagwrapper.h:33
TagWrapper::musicTags
QMap< Type, QString > musicTags() const
Definition:
tagwrapper.h:57
TagWrapper::Type
Type
Definition:
tagwrapper.h:31
TagWrapper::RATING
Definition:
tagwrapper.h:40
TagWrapper::YEAR
Definition:
tagwrapper.h:38
TagWrapper::URL
Definition:
tagwrapper.h:41
TagWrapper::LENGTH
Definition:
tagwrapper.h:42
TagWrapper::MODE
Definition:
tagwrapper.h:45
TagWrapper::m_path
QString m_path
Definition:
tagwrapper.h:60
QMMP_EXPORT
#define QMMP_EXPORT
Definition:
qmmp_export.h:29
TagWrapper::ALBUM
Definition:
tagwrapper.h:35
TagWrapper::SAMPLERATE
Definition:
tagwrapper.h:44
TagWrapper::COMMENT
Definition:
tagwrapper.h:36
TagWrapper::ARTIST
Definition:
tagwrapper.h:34
TagWrapper::FORMAT
Definition:
tagwrapper.h:43
Generated on Tue Jan 21 2025 21:07:15 for TTKMusicPlayer by
1.8.8