5 static constexpr
const char *
QUERY_URL =
"eC9KOTYxbVhvVDJNcGEwckhyMVZRdVRhOHhFRHQ2eFVNdWJxaURFSzA1ZWVmZm5HOFlzS1VCY2ZKOFRlYStBL2Y3SjNEK2gzY2QwPQ==";
15 const QDomNodeList &nodes =
m_document->elementsByTagName(
"group");
16 for(
int i = 0; i < nodes.count(); ++i)
19 QDomNode node = nodes.item(i);
23 const QDomNodeList &groupNodes = node.childNodes();
24 for(
int j = 0; j < groupNodes.count(); ++j)
34 node = groupNodes.item(j);
35 const QDomNodeList &packageNodes = node.childNodes();
37 for(
int k = 0; k < packageNodes.count(); ++k)
39 const QDomElement &element = packageNodes.item(k).toElement();
40 if(element.nodeName() ==
"name")
42 item.
m_name = element.text();
44 else if(element.nodeName() ==
"popularity")
48 else if(element.nodeName() ==
"file")
50 item.
m_url = element.text();
79 connect(d, SIGNAL(downLoadRawDataChanged(QByteArray)), SLOT(
downLoadFinished(QByteArray)));
85 MusicSkinRemoteGroupList items;
static constexpr int MAX_SIZE
The class of the remote skin item.
The class of the ttk xml interface.
QDomDocument * m_document
void downLoadDataChanged(const MusicSkinRemoteGroupList &bytes)
The class of the download skin remote background.
static constexpr const char * SKIN_THUNDER_DIR
virtual bool readBuffer(MusicSkinRemoteGroupList &items) overridefinal
virtual void downLoadFinished(const QByteArray &bytes) overridefinal
The class of the data source download request.
bool fromByteArray(const QByteArray &data)
MusicDownloadThunderSkinRequest(QObject *parent=nullptr)
void startToRequest(const QString &url)
The class of the remote skin item group.
MusicSkinRemoteItemList m_items
static constexpr const char * QUERY_URL
virtual void startToRequest() overridefinal
TTK_MODULE_EXPORT QString mdII(const QString &data, bool encode)
MusicThunderSkinConfigManager()
The class of the thunder skin XML config manager.