mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-08 18:12:41 +02:00
Set features at the right time
This commit is contained in:
parent
6386611871
commit
ff0d5613bb
@ -60,6 +60,10 @@ Jabber_p::Jabber_p( const QString& jid, const QString& password, const QString&
|
||||
m_jid = Jreen::JID( jid );
|
||||
|
||||
m_client = new Jreen::Client( jid, password );
|
||||
m_client->disco()->setSoftwareVersion( "Tomahawk JREEN", "0.0.0.0", "Foobar" );
|
||||
|
||||
m_client->disco()->addIdentity( Jreen::Disco::Identity( "client", "type", "tomahawk", "en" ) );
|
||||
m_client->disco()->addFeature( "tomahawk" );
|
||||
m_client->setResource( QString( "tomahawk%1" ).arg( "DOMME" ) );
|
||||
|
||||
Jreen::Capabilities::Ptr caps = m_client->presence().findExtension<Jreen::Capabilities>();
|
||||
@ -194,11 +198,6 @@ Jabber_p::onConnect()
|
||||
qDebug() << "Connected as:" << m_jid.full();
|
||||
|
||||
m_client->setPresence(Jreen::Presence::Available, "Tomahawk-JREEN available", 1);
|
||||
m_client->disco()->setSoftwareVersion( "Tomahawk JREEN", "0.0.0.0", "Foobar" );
|
||||
|
||||
m_client->disco()->addIdentity( Jreen::Disco::Identity( "client", "type", "tomahawk", "en" ) );
|
||||
|
||||
m_client->disco()->addFeature( "tomahawk" );
|
||||
|
||||
qDebug() << "DISCOFEATURES connected:" << m_client->disco()->features();
|
||||
m_client->setPingInterval(60000);
|
||||
|
Loading…
x
Reference in New Issue
Block a user