mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
sipjreen: implement setProxy()
This commit is contained in:
@@ -115,7 +115,20 @@ JabberPlugin::~JabberPlugin()
|
|||||||
void
|
void
|
||||||
JabberPlugin::setProxy( QNetworkProxy* proxy )
|
JabberPlugin::setProxy( QNetworkProxy* proxy )
|
||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO << "Not implemented";
|
if(m_currentServer.isEmpty() || !(m_currentPort > 0))
|
||||||
|
{
|
||||||
|
// patches are welcome in Jreen that implement jdns through proxy
|
||||||
|
qDebug() << Q_FUNC_INFO << "Jreen proxy only works when you explicitly set host and port";
|
||||||
|
Q_ASSERT(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!m_client->connection())
|
||||||
|
{
|
||||||
|
m_client->setConnection(new TcpConnection(m_currentServer, m_currentPort));
|
||||||
|
}
|
||||||
|
|
||||||
|
qobject_cast<DirectConnection*>(m_client->connection())->setProxy(proxy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user