1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-22 16:59:58 +01:00

sipjreen: implement setProxy()

This commit is contained in:
Dominik Schmidt 2011-05-03 15:58:47 +02:00
parent 99563bfde6
commit 2772e69a40

View File

@ -115,7 +115,20 @@ JabberPlugin::~JabberPlugin()
void
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);
}