summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers/NickResolver.h')
-rw-r--r--Swift/Controllers/NickResolver.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/Swift/Controllers/NickResolver.h b/Swift/Controllers/NickResolver.h
index c85274a..4abb71d 100644
--- a/Swift/Controllers/NickResolver.h
+++ b/Swift/Controllers/NickResolver.h
@@ -8,23 +8,33 @@
#define SWIFTEN_NickResolver_H
#include <map>
+#include <boost/signals.hpp>
#include <boost/shared_ptr.hpp>
#include "Swiften/Base/String.h"
#include "Swiften/JID/JID.h"
+#include "Swiften/Elements/VCard.h"
namespace Swift {
class XMPPRoster;
class MUCRegistry;
+ class VCardManager;
class NickResolver {
public:
- NickResolver(boost::shared_ptr<XMPPRoster> xmppRoster);
+ NickResolver(const JID& ownJID, boost::shared_ptr<XMPPRoster> xmppRoster, VCardManager* vcardManager);
String jidToNick(const JID& jid);
void setMUCRegistry(MUCRegistry* registry);
+
+ boost::signal<void (const String&)> onOwnNickChanged;
private:
+ void handleOwnVCardReceived(VCard::ref vCard);
+ JID ownJID_;
+ String ownNick_;
std::map<JID, String> map_;
+
boost::shared_ptr<XMPPRoster> xmppRoster_;
MUCRegistry* mucRegistry_;
+ VCardManager* vcardManager_;
};
}
#endif