summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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_;