TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the wangyi translation words request. More...
#include <musicwytranslationrequest.h>
Public Slots | |
virtual void | downLoadFinished () overridefinal |
![]() | |
virtual void | replyError (QNetworkReply::NetworkError error) override |
virtual void | sslErrors (QNetworkReply *reply, const QList< QSslError > &errors) override |
![]() | |
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) |
Public Member Functions | |
MusicWYTranslationRequest (QObject *parent=nullptr) | |
virtual void | startToRequest (const QString &data) overridefinal |
![]() | |
MusicAbstractTranslationRequest (QObject *parent=nullptr) | |
virtual void | deleteAll () overridefinal |
![]() | |
MusicAbstractNetwork (QObject *parent=nullptr) | |
![]() | |
TTKAbstractNetwork (QObject *parent=nullptr) | |
~TTKAbstractNetwork () | |
void | setHeader (const QString &key, const QVariant &value) |
const QVariant | header (const QString &key) const |
Additional Inherited Members | |
![]() | |
enum | Language { Language::Auto, Language::Chinese } |
![]() | |
void | downLoadDataChanged (const QString &bytes) |
void | downLoadRawDataChanged (const QByteArray &bytes) |
![]() | |
QVariantMap | m_rawData |
volatile bool | m_interrupt |
volatile TTK::NetworkCode | m_stateCode |
QNetworkReply * | m_reply |
QNetworkAccessManager | m_manager |
The class of the wangyi translation words request.
Definition at line 27 of file musicwytranslationrequest.h.
|
explicit |
Object constructor.
Definition at line 6 of file musicwytranslationrequest.cpp.
|
finaloverridevirtualslot |
Download data from net finished.
Definition at line 44 of file musicwytranslationrequest.cpp.
References MusicAbstractTranslationRequest::deleteAll(), TTKAbstractNetwork::downLoadDataChanged(), TTKAbstractNetwork::downLoadFinished(), TTKAbstractNetwork::m_reply, QJson::Parser::parse(), TTK_AUTHOR_NAME, TTK_ERROR_STREAM, TTK_INFO_STREAM, TTK_LINEFEED, and TTK_WLINEFEED.
Referenced by startToRequest().
|
finaloverridevirtual |
Start to download translation data.
Implements MusicAbstractTranslationRequest.
Definition at line 12 of file musicwytranslationrequest.cpp.
References MusicAbstractTranslationRequest::deleteAll(), TTKAbstractNetwork::deleteAll(), TTKAbstractNetwork::downLoadDataChanged(), downLoadFinished(), TTKSemaphoreLoop::exec(), TTKAbstractNetwork::header(), MusicAbstractQueryRequest::isEmpty(), MusicAbstractQueryRequest::items(), TTKAbstractNetwork::m_manager, TTKAbstractNetwork::m_reply, TTK::makeContentTypeHeader(), TTK::Algorithm::mdII(), MusicAbstractQueryRequest::Meta, QtNetworkErrorConnect, MusicAbstractNetwork::replyError(), MusicAbstractQueryRequest::setQueryMode(), TTK::setSslConfiguration(), MusicQueryRequest::startToSearch(), TTK::toString(), TTK_INFO_STREAM, TTK_SLOT, and WY_SONG_LRC_OLD_URL.