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 query artist album download data from net. More...
#include <musicwyqueryalbumrequest.h>
Public Slots | |
virtual void | downLoadFinished () overridefinal |
![]() | |
virtual void | downLoadFinished () override |
![]() | |
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 | |
MusicWYQueryArtistAlbumRequest (QObject *parent=nullptr) | |
virtual void | startToPage (int offset) overridefinal |
![]() | |
MusicQueryAlbumRequest (QObject *parent=nullptr) | |
virtual void | startToSearch (const QString &value) override |
![]() | |
MusicAbstractQueryRequest (QObject *parent=nullptr) | |
virtual void | startToSearchByID (const QString &value) |
virtual void | startToQueryResult (TTK::MusicSongInformation *info, int bitrate) |
void | setQueryMode (QueryMode mode) |
QueryMode | queryMode () const |
void | setQueryType (QueryType type) |
QueryType | queryType () const |
QString | queryServer () const |
QString | queryValue () const |
void | setItems (const TTK::MusicSongInformationList &items) |
const TTK::MusicSongInformationList & | items () const |
bool | isEmpty () const |
![]() | |
MusicPageQueryRequest (QObject *parent=nullptr) | |
int | pageTotalSize () const noexcept |
int | pageSize () const noexcept |
int | totalSize () const noexcept |
int | pageIndex () const noexcept |
bool | pageValid () const noexcept |
![]() | |
MusicAbstractNetwork (QObject *parent=nullptr) | |
![]() | |
TTKAbstractNetwork (QObject *parent=nullptr) | |
~TTKAbstractNetwork () | |
virtual void | deleteAll () |
void | setHeader (const QString &key, const QVariant &value) |
const QVariant | header (const QString &key) const |
The class of the wangyi query artist album download data from net.
Definition at line 59 of file musicwyqueryalbumrequest.h.
|
explicit |
Object constructor.
Definition at line 131 of file musicwyqueryalbumrequest.cpp.
References ARTIST_ATTR_PAGE_SIZE, MusicPageQueryRequest::m_pageSize, MusicAbstractQueryRequest::m_queryServer, and QUERY_WY_INTERFACE.
|
finaloverridevirtualslot |
Download data from net finished.
Definition at line 156 of file musicwyqueryalbumrequest.cpp.
References MusicQueryAlbumRequest::createAlbumItem(), TTKAbstractNetwork::deleteAll(), TTKAbstractNetwork::downLoadDataChanged(), TTKAbstractNetwork::downLoadFinished(), TTKDateTime::format(), MusicResultDataItem::m_coverUrl, MusicResultDataItem::m_id, MusicResultDataItem::m_name, TTKAbstractNetwork::m_reply, MusicResultDataItem::m_time, MusicPageQueryRequest::m_totalSize, ReqWYInterface::makeCoverPixmapUrl(), QJson::Parser::parse(), qAsConst, TTK::toString(), TTK_DATE2_FORMAT, TTK_INFO_STREAM, and TTK_NETWORK_QUERY_CHECK.
Referenced by startToPage().
|
finaloverridevirtual |
Start to search data by offset page.
Reimplemented from MusicPageQueryRequest.
Definition at line 138 of file musicwyqueryalbumrequest.cpp.
References TTKAbstractNetwork::deleteAll(), downLoadFinished(), TTKAbstractNetwork::m_manager, MusicPageQueryRequest::m_pageIndex, MusicPageQueryRequest::m_pageSize, MusicAbstractQueryRequest::m_queryValue, TTKAbstractNetwork::m_reply, MusicPageQueryRequest::m_totalSize, ReqWYInterface::makeTokenRequest(), TTK::Algorithm::mdII(), QtNetworkErrorConnect, MusicAbstractNetwork::replyError(), TTK_INFO_STREAM, TTK_SLOT, WY_ARTIST_ALBUM_DATA_URL, and WY_ARTIST_ALBUM_URL.