diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-06-10 17:23:57 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-06-10 17:38:05 (GMT) |
commit | e2f5588d089e4d2148762ea092e032976254a467 (patch) | |
tree | 851946c7a36ffa96e0f3ab54bc72f233f8b2c746 /Swiften/Controllers/NickResolver.cpp | |
parent | 7214d768dca85a6d43892169d5008898249dce73 (diff) | |
download | swift-contrib-e2f5588d089e4d2148762ea092e032976254a467.zip swift-contrib-e2f5588d089e4d2148762ea092e032976254a467.tar.bz2 |
Moved Swiften/Controllers to Swift/Controllers.
Diffstat (limited to 'Swiften/Controllers/NickResolver.cpp')
-rw-r--r-- | Swiften/Controllers/NickResolver.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Swiften/Controllers/NickResolver.cpp b/Swiften/Controllers/NickResolver.cpp deleted file mode 100644 index 1c51cb7..0000000 --- a/Swiften/Controllers/NickResolver.cpp +++ /dev/null @@ -1,22 +0,0 @@ -#include "Swiften/Controllers/NickResolver.h" - -#include <boost/shared_ptr.hpp> - -#include "Swiften/Roster/XMPPRoster.h" - -namespace Swift { - -NickResolver::NickResolver(boost::shared_ptr<XMPPRoster> xmppRoster) { - xmppRoster_ = xmppRoster; -} - -String NickResolver::jidToNick(const JID& jid) { - if (xmppRoster_->containsJID(jid)) { - return xmppRoster_->getNameForJID(jid); - } - std::map<JID, String>::iterator it = map_.find(jid); - return (it == map_.end()) ? jid.toBare() : it->second; -} - -} - |