mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-22 00:42:04 +02:00
Implement adding friends in sip_jreen
This commit is contained in:
parent
91998ec132
commit
528918831e
@ -150,8 +150,9 @@ Jabber_p::addContact( const QString& jid, const QString& msg )
|
||||
return;
|
||||
}
|
||||
|
||||
//FIXME: implement it when I dont suck that much :-)
|
||||
//handleSubscription(Subscription());
|
||||
// Add contact to the Tomahawk group on the roster
|
||||
m_roster->add( jid, jid, QStringList() << "Tomahawk" );
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@ -175,8 +176,8 @@ Jabber_p::onConnect()
|
||||
m_client->setPresence(jreen::Presence::Available, "Tomahawk-JREEN available", 1);
|
||||
m_client->disco()->setSoftwareVersion( "Tomahawk JREEN", "0.0.0.0", "Foobar" );
|
||||
m_client->setPingInterval(60000);
|
||||
jreen::AbstractRoster *roster = new jreen::AbstractRoster( m_client );
|
||||
roster->load();
|
||||
m_roster = new jreen::SimpleRoster( m_client );
|
||||
m_roster->load();
|
||||
|
||||
// join MUC with bare jid as nickname
|
||||
//TODO: make the room a list of rooms and make that configurable
|
||||
|
@ -74,6 +74,7 @@ private:
|
||||
bool presenceMeansOnline( jreen::Presence::Type p );
|
||||
jreen::Client *m_client;
|
||||
jreen::MUCRoom *m_room;
|
||||
jreen::SimpleRoster *m_roster;
|
||||
jreen::JID m_jid;
|
||||
QMap<jreen::Presence::Type, QString> m_presences;
|
||||
QMap<QString, jreen::Presence::Type> m_peers;
|
||||
|
2
thirdparty/jreen
vendored
2
thirdparty/jreen
vendored
@ -1 +1 @@
|
||||
Subproject commit a997c41967823907216255346e179569e4b1cfc9
|
||||
Subproject commit 29c48124fb77c1547c5dc7d6a631993e282454be
|
Loading…
x
Reference in New Issue
Block a user