summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCătălin Badea <catalin.badea392@gmail.com>2012-08-10 11:06:06 (GMT)
committerCătălin Badea <catalin.badea392@gmail.com>2012-08-11 15:59:13 (GMT)
commit2b8f9e07d0aa0c119c6c2abf97c703008b213830 (patch)
treed4a757308a1e54c9575601516f2c2ebc62db3c13 /Swift/Controllers/HistoryViewController.h
parent25e07587af51258e1a90af4953aab8f2cafba1f5 (diff)
downloadswift-contrib-2b8f9e07d0aa0c119c6c2abf97c703008b213830.zip
swift-contrib-2b8f9e07d0aa0c119c6c2abf97c703008b213830.tar.bz2
Handle presence and avatar changes.
Diffstat (limited to 'Swift/Controllers/HistoryViewController.h')
-rw-r--r--Swift/Controllers/HistoryViewController.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Swift/Controllers/HistoryViewController.h b/Swift/Controllers/HistoryViewController.h
index 2302355..6ee94d9 100644
--- a/Swift/Controllers/HistoryViewController.h
+++ b/Swift/Controllers/HistoryViewController.h
@@ -13,6 +13,7 @@
#include <Swift/Controllers/UIEvents/UIEventStream.h>
#include <Swiften/History/HistoryManager.h>
#include <Swiften/JID/JID.h>
+#include <Swiften/Presence/PresenceOracle.h>
#include <set>
namespace Swift {
@@ -28,7 +29,7 @@ namespace Swift {
class HistoryViewController {
public:
- HistoryViewController(const JID& selfJID, UIEventStream* uiEventStream, HistoryController* historyController, NickResolver* nickResolver, AvatarManager* avatarManager, HistoryWindowFactory* historyWindowFactory);
+ HistoryViewController(const JID& selfJID, UIEventStream* uiEventStream, HistoryController* historyController, NickResolver* nickResolver, AvatarManager* avatarManager, PresenceOracle* presenceOracle, HistoryWindowFactory* historyWindowFactory);
~HistoryViewController();
private:
@@ -41,6 +42,8 @@ namespace Swift {
void handlePreviousButtonClicked();
void handleNextButtonClicked();
void handleCalendarClicked(const boost::gregorian::date& date);
+ void handlePresenceChanged(Presence::ref presence);
+ void handleAvatarChanged(const JID& jid);
void addNewMessage(const HistoryMessage& message, bool addAtTheTop);
void reset();
@@ -51,6 +54,7 @@ namespace Swift {
HistoryController* historyController_;
NickResolver* nickResolver_;
AvatarManager* avatarManager_;
+ PresenceOracle* presenceOracle_;
HistoryWindowFactory* historyWindowFactory_;
HistoryWindow* historyWindow_;
Roster* roster_;