diff options
Diffstat (limited to 'Swiften/Client/Client.cpp')
-rw-r--r-- | Swiften/Client/Client.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Swiften/Client/Client.cpp b/Swiften/Client/Client.cpp index 20a0c47..f1ca207 100644 --- a/Swiften/Client/Client.cpp +++ b/Swiften/Client/Client.cpp @@ -7,7 +7,7 @@ #include "Swiften/Client/Client.h" #include "Swiften/Queries/Responders/SoftwareVersionResponder.h" -#include "Swiften/Roster/XMPPRoster.h" +#include "Swiften/Roster/XMPPRosterImpl.h" #include "Swiften/Roster/XMPPRosterController.h" #include "Swiften/Presence/PresenceOracle.h" @@ -17,7 +17,7 @@ Client::Client(const JID& jid, const String& password) : CoreClient(jid, passwor softwareVersionResponder = new SoftwareVersionResponder(getIQRouter()); softwareVersionResponder->start(); - roster = new XMPPRoster(); + roster = new XMPPRosterImpl(); rosterController = new XMPPRosterController(getIQRouter(), roster); presenceOracle = new PresenceOracle(getStanzaChannel()); @@ -35,6 +35,10 @@ Client::~Client() { delete softwareVersionResponder; } +XMPPRoster* Client::getRoster() const { + return roster; +} + void Client::setSoftwareVersion(const String& name, const String& version) { softwareVersionResponder->setVersion(name, version); } |