| Line | |
|---|
| 1 | #ifndef ACCOUNTMONITORITEM_H |
|---|
| 2 | #define ACCOUNTMONITORITEM_H |
|---|
| 3 | |
|---|
| 4 | #include <QtGui> |
|---|
| 5 | #include <coip/coip.h> |
|---|
| 6 | |
|---|
| 7 | namespace Ui { |
|---|
| 8 | class AccountMonitorItem; |
|---|
| 9 | } |
|---|
| 10 | |
|---|
| 11 | class AccountMonitorItem :public QWidget |
|---|
| 12 | { |
|---|
| 13 | Q_OBJECT |
|---|
| 14 | |
|---|
| 15 | private: |
|---|
| 16 | Ui::AccountMonitorItem * ui; |
|---|
| 17 | std::string _accountId; |
|---|
| 18 | int _hideTimer; |
|---|
| 19 | int _animationTimer; |
|---|
| 20 | int _angle; |
|---|
| 21 | |
|---|
| 22 | void updatePresenceState(EnumPresenceState::PresenceState presenceState); |
|---|
| 23 | |
|---|
| 24 | void startAnimationTimer(); |
|---|
| 25 | void stopAnimationTimer(); |
|---|
| 26 | |
|---|
| 27 | void startHideTimer(); |
|---|
| 28 | void stopHideTimer(); |
|---|
| 29 | |
|---|
| 30 | public: |
|---|
| 31 | explicit AccountMonitorItem(std::string accountId, QWidget *parent = 0); |
|---|
| 32 | ~AccountMonitorItem(); |
|---|
| 33 | |
|---|
| 34 | protected: |
|---|
| 35 | void changeEvent(QEvent *e); |
|---|
| 36 | void timerEvent(QTimerEvent *e); |
|---|
| 37 | |
|---|
| 38 | private Q_SLOTS: |
|---|
| 39 | void accountConnectionStateSlot(std::string, EnumConnectionState::ConnectionState); |
|---|
| 40 | void accountConnectionErrorSlot(std::string, EnumConnectionError::ConnectionError); |
|---|
| 41 | void accountConnectionProgressSlot(std::string, unsigned, unsigned, std::string); |
|---|
| 42 | void accountAddedSlot(std::string accountId); |
|---|
| 43 | void accountRemovedSlot(std::string accountId); |
|---|
| 44 | void accountUpdatedSlot(std::string accountId, EnumUpdateSection::UpdateSection section); |
|---|
| 45 | void onlineClicked(); |
|---|
| 46 | void awayClicked(); |
|---|
| 47 | void doNotDisturbClicked(); |
|---|
| 48 | void invisibleClicked(); |
|---|
| 49 | void offlineClicked(); |
|---|
| 50 | }; |
|---|
| 51 | |
|---|
| 52 | #endif //ACCOUNTMONITORITEM_H |
|---|
Note: See
TracBrowser
for help on using the repository browser.