TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicbackgroundconfigmanager.cpp
Go to the documentation of this file.
2 
5 {
6 
7 }
8 
10 {
11  items.m_name = readAttributeByTagName("name");
12  items.m_useCount = readAttributeByTagName("useCount").toInt();
13  return true;
14 }
15 
17 {
19  QDomElement rootDom = createRoot("TTKSkin");
20 
21  writeDomElement(rootDom, "creator", {"value", TTK_APP_NAME});
22  writeDomElement(rootDom, "name", {"value", items.m_name});
23  writeDomElement(rootDom, "useCount", {"value", items.m_useCount});
24 
25  save();
26  return true;
27 }
virtual bool readBuffer(MusicSkinItem &items) overridefinal
The class of the ttk xml interface.
#define TTK_APP_NAME
Definition: ttkobject.h:25
QDomElement writeDomElement(QDomElement &element, const QString &node) const
virtual bool writeBuffer(const MusicSkinItem &items) overridefinal
void createProcessingInstruction() const
QDomElement createRoot(const QString &node) const
The class of the skin item.
QString readAttributeByTagName(const QString &tagName, const QString &attrName="value") const
void save() const