summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-08-27 20:19:14 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-08-27 21:52:18 (GMT)
commit7f1bcf974efac0ed87b6f8f639e1fdc16a89eb09 (patch)
tree7fa948375b6cc56f37bd2be400d6d8be9ca97837 /Swift/Controllers/NickResolver.h
parentba774f85e77531c7971804cb738c6b434a197258 (diff)
downloadswift-7f1bcf974efac0ed87b6f8f639e1fdc16a89eb09.zip
swift-7f1bcf974efac0ed87b6f8f639e1fdc16a89eb09.tar.bz2
Separate MUCRegistry from ChatsManager.
Diffstat (limited to 'Swift/Controllers/NickResolver.h')
-rw-r--r--Swift/Controllers/NickResolver.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Swift/Controllers/NickResolver.h b/Swift/Controllers/NickResolver.h
index 4abb71d..24081b2 100644
--- a/Swift/Controllers/NickResolver.h
+++ b/Swift/Controllers/NickResolver.h
@@ -21,13 +21,14 @@ namespace Swift {
class VCardManager;
class NickResolver {
public:
- NickResolver(const JID& ownJID, boost::shared_ptr<XMPPRoster> xmppRoster, VCardManager* vcardManager);
+ NickResolver(const JID& ownJID, boost::shared_ptr<XMPPRoster> xmppRoster, VCardManager* vcardManager, MUCRegistry* mucRegistry);
+
String jidToNick(const JID& jid);
void setMUCRegistry(MUCRegistry* registry);
boost::signal<void (const String&)> onOwnNickChanged;
private:
- void handleOwnVCardReceived(VCard::ref vCard);
+ void handleVCardReceived(const JID& jid, VCard::ref vCard);
JID ownJID_;
String ownNick_;
std::map<JID, String> map_;