TTKMusicPlayer  4.3.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MusicIdentifySongRequest Class Reference

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
 

Detailed Description

The class of the song identify query request.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 117 of file musicidentifysongrequest.h.

Constructor & Destructor Documentation

MusicIdentifySongRequest::MusicIdentifySongRequest ( QObject *  parent = nullptr)

Object constructor.

Definition at line 214 of file musicidentifysongrequest.cpp.

Member Function Documentation

void MusicIdentifySongRequest::downloadDataFinished ( const QString &  bytes)
slot

Download data from net finished.

Definition at line 241 of file musicidentifysongrequest.cpp.

References TTKAbstractNetwork::downloadDataChanged(), and findAllPlugins().

Referenced by findAllPlugins().

void MusicIdentifySongRequest::downloadKeyFinished ( const QByteArray &  bytes)
slot
void MusicIdentifySongRequest::findAllPlugins ( )
private
void MusicIdentifySongRequest::finished ( )
signal

Get key data from net finished.

Referenced by downloadKeyFinished(), and initialize().

bool MusicIdentifySongRequest::initialize ( )
const MusicSongIdentifyDataList& MusicIdentifySongRequest::items ( ) const
inlinenoexcept
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().

Member Data Documentation

MusicSongIdentifyDataList MusicIdentifySongRequest::m_items
private

Definition at line 166 of file musicidentifysongrequest.h.

Referenced by findAllPlugins().

QString MusicIdentifySongRequest::m_path
private

Definition at line 164 of file musicidentifysongrequest.h.

Referenced by findAllPlugins(), and startToRequest().

int MusicIdentifySongRequest::m_pluginSelector
private

Definition at line 165 of file musicidentifysongrequest.h.

Referenced by findAllPlugins(), and startToRequest().


The documentation for this class was generated from the following files: