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 show download state object. More...
#include <musicdownloadstatusmodule.h>
Public Slots | |
void | currentMetaDataDownload () |
void | showDownLoadInfoFinished (const QString &bytes) |
void | networkConnectionStateChanged (bool state) |
Public Member Functions | |
MusicDownloadStatusModule (QObject *parent=nullptr) | |
void | checkMetaDataValid (bool mode) |
Private Member Functions | |
bool | checkLrcValid () const |
bool | checkArtistCoverValid () const |
bool | checkArtistBackgroundValid () const |
Private Attributes | |
bool | m_previousState |
MusicApplication * | m_parent |
The class of the show download state object.
Definition at line 29 of file musicdownloadstatusmodule.h.
|
explicit |
Object constructor.
Definition at line 10 of file musicdownloadstatusmodule.cpp.
References G_CONNECTION_PTR.
|
private |
Check the current artist background meta data valid.
Definition at line 131 of file musicdownloadstatusmodule.cpp.
References BACKGROUND_DIR_FULL, MusicApplication::currentFileName(), TTK::generateSongArtist(), m_parent, and SKN_FILE.
Referenced by checkMetaDataValid(), and currentMetaDataDownload().
|
private |
Check the current artist cover meta data valid.
Definition at line 125 of file musicdownloadstatusmodule.cpp.
References ART_DIR_FULL, MusicApplication::currentFileName(), TTK::generateSongArtist(), m_parent, and SKN_FILE.
Referenced by checkMetaDataValid(), and currentMetaDataDownload().
|
private |
Check the current lrc meta data valid.
Definition at line 119 of file musicdownloadstatusmodule.cpp.
References MusicApplication::currentFileName(), LRC_FILE, TTK::String::lrcDirPrefix(), and m_parent.
Referenced by checkMetaDataValid(), and currentMetaDataDownload().
void MusicDownloadStatusModule::checkMetaDataValid | ( | bool | mode | ) |
Check the current song meta data valid.
Check there is no opening lyrics display mode
Definition at line 19 of file musicdownloadstatusmodule.cpp.
References checkArtistBackgroundValid(), checkArtistCoverValid(), checkLrcValid(), MusicApplication::checkMusicListCurrentIndex(), MusicApplication::currentFileName(), currentMetaDataDownload(), G_DOWNLOAD_QUERY_PTR, G_NETWORK_PTR, m_parent, MusicAbstractQueryRequest::Meta, TTKAbstractNetwork::setHeader(), MusicAbstractQueryRequest::setQueryMode(), and MusicAbstractQueryRequest::startToSearch().
Referenced by MusicRightAreaWidget::checkMetaDataValid().
|
slot |
Download current music meta data from net.
download lrc
download art picture
download art background picture
Definition at line 44 of file musicdownloadstatusmodule.cpp.
References ART_DIR_FULL, checkArtistBackgroundValid(), checkArtistCoverValid(), checkLrcValid(), G_DOWNLOAD_QUERY_PTR, G_NETWORK_PTR, TTK::generateSongArtist(), TTK::generateSongTitle(), TTKAbstractNetwork::header(), MusicAbstractQueryRequest::items(), LRC_FILE, TTK::String::lrcDirPrefix(), TTK::MusicSongInformation::m_artistName, TTK::MusicSongInformation::m_coverUrl, TTK::MusicSongInformation::m_lrcUrl, qAsConst, MusicAbstractQueryRequest::queryValue(), showDownLoadInfoFinished(), SKN_FILE, TTK::String::split(), and TTKObjectCast.
Referenced by checkMetaDataValid().
|
slot |
Show current net connect state changed by net request.
Definition at line 107 of file musicdownloadstatusmodule.cpp.
References G_NETWORK_PTR, MusicBottomAreaWidget::instance(), m_previousState, and MusicBottomAreaWidget::showMessage().
|
slot |
Show download state string type.
lyrics download finished immediately loaded to display
Definition at line 94 of file musicdownloadstatusmodule.cpp.
References DOWNLOAD_KEY_COVER, DOWNLOAD_KEY_LRC, MusicApplication::loadCurrentSongLrc(), m_parent, and MusicApplication::updateCurrentArtist().
Referenced by currentMetaDataDownload().
|
private |
Definition at line 73 of file musicdownloadstatusmodule.h.
Referenced by checkArtistBackgroundValid(), checkArtistCoverValid(), checkLrcValid(), checkMetaDataValid(), and showDownLoadInfoFinished().
|
private |
Definition at line 72 of file musicdownloadstatusmodule.h.
Referenced by networkConnectionStateChanged().