TTKMusicPlayer
4.2.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 music network proxy. More...
#include <musicnetworkproxy.h>
Signals | |
void | testProxyStateChanged (bool state) |
Public Member Functions | |
MusicNetworkProxy (QObject *parent=nullptr) | |
~MusicNetworkProxy () | |
void | setHostName (const QString &name) noexcept |
QString | hostName () const noexcept |
void | setPort (int port) noexcept |
int | port () const noexcept |
void | setType (int type) noexcept |
int | type () const noexcept |
void | setUser (const QString &user) noexcept |
QString | user () const noexcept |
void | setPassword (const QString &pwd) noexcept |
QString | password () const noexcept |
void | testProxy () |
void | applyProxy () |
Private Slots | |
void | testProxyChanged (QAbstractSocket::SocketState state) |
Private Attributes | |
int | m_port |
int | m_type |
QString | m_hostName |
QString | m_user |
QString | m_pwd |
QTcpSocket * | m_socket |
The class of the music network proxy.
Definition at line 28 of file musicnetworkproxy.h.
|
explicit |
Object constructor.
Definition at line 5 of file musicnetworkproxy.cpp.
MusicNetworkProxy::~MusicNetworkProxy | ( | ) |
void MusicNetworkProxy::applyProxy | ( | ) |
Apply current proxy.
Definition at line 81 of file musicnetworkproxy.cpp.
References m_hostName, m_port, m_pwd, m_type, m_user, and TTKStaticCast.
Referenced by MusicSettingWidget::setNetworkProxyByType().
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
Set proxy hostName.
Definition at line 19 of file musicnetworkproxy.cpp.
References name.
Referenced by MusicSettingWidget::setNetworkProxyByType().
|
noexcept |
Set proxy password.
Definition at line 59 of file musicnetworkproxy.cpp.
Referenced by MusicSettingWidget::setNetworkProxyByType().
|
noexcept |
Set proxy port.
Definition at line 29 of file musicnetworkproxy.cpp.
Referenced by MusicSettingWidget::setNetworkProxyByType().
|
noexcept |
Set proxy type.
Definition at line 34 of file musicnetworkproxy.cpp.
Referenced by MusicSettingWidget::setNetworkProxyByType().
|
noexcept |
Set proxy username.
Definition at line 49 of file musicnetworkproxy.cpp.
Referenced by MusicSettingWidget::setNetworkProxyByType().
void MusicNetworkProxy::testProxy | ( | ) |
Test current proxy available.
Definition at line 69 of file musicnetworkproxy.cpp.
References m_hostName, m_port, m_socket, and testProxyChanged().
Referenced by MusicSettingWidget::setNetworkProxyByType().
|
privateslot |
Test current proxy available changed.
Definition at line 107 of file musicnetworkproxy.cpp.
References testProxyStateChanged().
Referenced by testProxy().
|
signal |
Test current proxy available changed.
Referenced by testProxyChanged().
|
noexcept |
|
noexcept |
|
private |
Definition at line 110 of file musicnetworkproxy.h.
Referenced by applyProxy(), hostName(), and testProxy().
|
private |
Definition at line 109 of file musicnetworkproxy.h.
Referenced by applyProxy(), port(), and testProxy().
|
private |
Definition at line 110 of file musicnetworkproxy.h.
Referenced by applyProxy(), and password().
|
private |
Definition at line 111 of file musicnetworkproxy.h.
Referenced by testProxy(), and ~MusicNetworkProxy().
|
private |
Definition at line 109 of file musicnetworkproxy.h.
Referenced by applyProxy(), and type().
|
private |
Definition at line 110 of file musicnetworkproxy.h.
Referenced by applyProxy(), and user().