|
TTKMusicPlayer
4.3.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the song identify query request. More...
#include <musicidentifysongrequest.h>
Inheritance diagram for MusicIdentifySongRequest:Public Slots | |
| void | downloadDataFinished (const QString &bytes) |
| void | downloadKeyFinished (const QByteArray &bytes) |
Public Slots inherited from MusicAbstractNetwork | |
| virtual void | replyError (QNetworkReply::NetworkError error) override |
| virtual void | sslErrors (QNetworkReply *reply, const QList< QSslError > &errors) override |
Public Slots inherited from TTKAbstractNetwork | |
| virtual void | downloadFinished () |
| virtual void | replyError (QNetworkReply::NetworkError error) |
| virtual void | sslErrors (QNetworkReply *reply, const QList< QSslError > &errors) |
| void | sslErrorsString (QNetworkReply *reply, const QList< QSslError > &errors) |
Signals | |
| void | finished () |
Signals inherited from TTKAbstractNetwork | |
| void | downloadDataChanged (const QString &bytes) |
| void | downloadRawDataChanged (const QByteArray &bytes) |
Public Member Functions | |
| MusicIdentifySongRequest (QObject *parent=nullptr) | |
| bool | initialize () |
| void | startToRequest (const QString &path) |
| const MusicSongIdentifyDataList & | items () const noexcept |
Public Member Functions inherited from MusicAbstractNetwork | |
| MusicAbstractNetwork (QObject *parent=nullptr) | |
Public Member Functions inherited from TTKAbstractNetwork | |
| TTKAbstractNetwork (QObject *parent=nullptr) | |
| ~TTKAbstractNetwork () | |
| virtual void | deleteAll () |
| void | setHeader (const QString &key, const QVariant &value) noexcept |
| const QVariant | header (const QString &key) const noexcept |
Private Member Functions | |
| void | findAllPlugins () |
Private Attributes | |
| QString | m_path |
| int | m_pluginSelector |
| MusicSongIdentifyDataList | m_items |
Additional Inherited Members | |
Protected Attributes inherited from TTKAbstractNetwork | |
| QVariantMap | m_rawData |
| volatile bool | m_interrupt |
| volatile TTK::NetworkCode | m_stateCode |
| QNetworkReply * | m_reply |
| QNetworkAccessManager | m_manager |
The class of the song identify query request.
Definition at line 117 of file musicidentifysongrequest.h.
| MusicIdentifySongRequest::MusicIdentifySongRequest | ( | QObject * | parent = nullptr | ) |
Object constructor.
Definition at line 214 of file musicidentifysongrequest.cpp.
|
slot |
Download data from net finished.
Definition at line 241 of file musicidentifysongrequest.cpp.
References TTKAbstractNetwork::downloadDataChanged(), and findAllPlugins().
Referenced by findAllPlugins().
|
slot |
Download key from net finished.
Definition at line 271 of file musicidentifysongrequest.cpp.
References QJsonParseError::error, finished(), QJsonDocument::fromJson(), TTKAbstractNetwork::m_rawData, QJsonParseError::NoError, QJsonDocument::toVariant(), and TTK_ERROR_STREAM.
Referenced by initialize().
|
private |
Find all plugins.
Definition at line 252 of file musicidentifysongrequest.cpp.
References TTKAbstractNetwork::downloadDataChanged(), downloadDataFinished(), m_items, m_path, m_pluginSelector, TTKAbstractNetwork::m_rawData, MusicAbstractIdentifyRequest::setItems(), and MusicAbstractIdentifyRequest::startToRequest().
Referenced by downloadDataFinished(), and startToRequest().
|
signal |
Get key data from net finished.
Referenced by downloadKeyFinished(), and initialize().
| bool MusicIdentifySongRequest::initialize | ( | ) |
Get query cloud id keys.
Definition at line 221 of file musicidentifysongrequest.cpp.
References downloadKeyFinished(), TTKAbstractNetwork::downloadRawDataChanged(), TTKEventLoop::exec(), finished(), TTKAbstractNetwork::m_rawData, QSyncUtils::makeDataBucketUrl(), OS_ACRCLOUD_URL, and MusicDataSourceRequest::startToRequest().
Referenced by MusicIdentifySongWidget::initialize().
|
inlinenoexcept |
Get identify songs.
Definition at line 139 of file musicidentifysongrequest.h.
Referenced by MusicIdentifySongWidget::createDetectedSuccessedWidget(), and MusicIdentifySongWidget::detectedTimeOut().
| void MusicIdentifySongRequest::startToRequest | ( | const QString & | path | ) |
Start to download identify data.
Definition at line 234 of file musicidentifysongrequest.cpp.
References findAllPlugins(), m_path, and m_pluginSelector.
Referenced by MusicIdentifySongWidget::detectedTimeOut().
|
private |
Definition at line 166 of file musicidentifysongrequest.h.
Referenced by findAllPlugins().
|
private |
Definition at line 164 of file musicidentifysongrequest.h.
Referenced by findAllPlugins(), and startToRequest().
|
private |
Definition at line 165 of file musicidentifysongrequest.h.
Referenced by findAllPlugins(), and startToRequest().
1.8.8