diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-10-24 15:50:14 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-10-24 15:50:14 (GMT) |
commit | 16386458ff461edfdfd498fe737436ce9297babf (patch) | |
tree | 592dfbf63d8c03a93a429c78ff090414377c538e /Swift/Controllers | |
parent | 9d3b9903fcf830599c1b46fd1725f4d1d197e966 (diff) | |
download | swift-16386458ff461edfdfd498fe737436ce9297babf.zip swift-16386458ff461edfdfd498fe737436ce9297babf.tar.bz2 |
Blind attempt at animated system tray
Diffstat (limited to 'Swift/Controllers')
-rw-r--r-- | Swift/Controllers/MainController.cpp | 1 | ||||
-rw-r--r-- | Swift/Controllers/SystemTray.h | 1 | ||||
-rw-r--r-- | Swift/Controllers/SystemTrayController.cpp | 4 | ||||
-rw-r--r-- | Swift/Controllers/SystemTrayController.h | 1 |
4 files changed, 7 insertions, 0 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp index 614e2d2..f6fe40c 100644 --- a/Swift/Controllers/MainController.cpp +++ b/Swift/Controllers/MainController.cpp @@ -427,6 +427,7 @@ void MainController::performLoginFromCachedCredentials() { /* In case we're in the middle of another login, make sure they don't overlap */ client_->disconnect(); } + systemTrayController_->setConnecting(); if (rosterController_) { rosterController_->getWindow()->setConnecting(); } diff --git a/Swift/Controllers/SystemTray.h b/Swift/Controllers/SystemTray.h index 2821785..736b1fa 100644 --- a/Swift/Controllers/SystemTray.h +++ b/Swift/Controllers/SystemTray.h @@ -14,5 +14,6 @@ namespace Swift { virtual ~SystemTray(){}; virtual void setUnreadMessages(bool some) = 0; virtual void setStatusType(StatusShow::Type type) = 0; + virtual void setConnecting() = 0; }; } diff --git a/Swift/Controllers/SystemTrayController.cpp b/Swift/Controllers/SystemTrayController.cpp index d3824c9..598771c 100644 --- a/Swift/Controllers/SystemTrayController.cpp +++ b/Swift/Controllers/SystemTrayController.cpp @@ -35,4 +35,8 @@ void SystemTrayController::setMyStatusType(StatusShow::Type type) { systemTray_->setStatusType(type); } +void SystemTrayController::setConnecting() { + systemTray_->setConnecting(); +} + } diff --git a/Swift/Controllers/SystemTrayController.h b/Swift/Controllers/SystemTrayController.h index 8fd514f..3624ea2 100644 --- a/Swift/Controllers/SystemTrayController.h +++ b/Swift/Controllers/SystemTrayController.h @@ -16,6 +16,7 @@ namespace Swift { public: SystemTrayController(EventController* eventController, SystemTray* systemTray); void setMyStatusType(StatusShow::Type type); + void setConnecting(); private: void handleEventQueueLengthChange(int length); |