diff options
author | Cătălin Badea <catalin.badea392@gmail.com> | 2012-08-10 11:06:06 (GMT) |
---|---|---|
committer | Cătălin Badea <catalin.badea392@gmail.com> | 2012-08-10 11:06:06 (GMT) |
commit | 80f2cbf4d3f805cf4464a51ccd20fb647a49ff50 (patch) | |
tree | 4ef3618c64795426fbc1b10634b2e60174ddb3f0 /Swift/Controllers/HistoryViewController.h | |
parent | 62f2c451de60255b37d695076fa4ef780cd3c516 (diff) | |
download | swift-contrib-80f2cbf4d3f805cf4464a51ccd20fb647a49ff50.zip swift-contrib-80f2cbf4d3f805cf4464a51ccd20fb647a49ff50.tar.bz2 |
Handle presence and avatar changes.
Diffstat (limited to 'Swift/Controllers/HistoryViewController.h')
-rw-r--r-- | Swift/Controllers/HistoryViewController.h | 6 |
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_; |