| 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 | |
|---|
| 20 | void updatePresenceState(EnumPresenceState::PresenceState presenceState); |
|---|
| 21 | |
|---|
| 22 | public: |
|---|
| 23 | explicit AccountMonitorItem(std::string accountId, QWidget *parent = 0); |
|---|
| 24 | ~AccountMonitorItem(); |
|---|
| 25 | |
|---|
| 26 | protected: |
|---|
| 27 | void changeEvent(QEvent *e); |
|---|
| 28 | void timerEvent(QTimerEvent *e); |
|---|
| 29 | |
|---|
| 30 | private Q_SLOTS: |
|---|
| 31 | void accountConnectionStateSlot(std::string, EnumConnectionState::ConnectionState); |
|---|
| 32 | void accountConnectionErrorSlot(std::string, EnumConnectionError::ConnectionError); |
|---|
| 33 | void accountConnectionProgressSlot(std::string, unsigned, unsigned, std::string); |
|---|
| 34 | void accountAddedSlot(std::string accountId); |
|---|
| 35 | void accountRemovedSlot(std::string accountId); |
|---|
| 36 | void accountUpdatedSlot(std::string accountId, EnumUpdateSection::UpdateSection section); |
|---|
| 37 | void onlineClicked(); |
|---|
| 38 | void awayClicked(); |
|---|
| 39 | void doNotDisturbClicked(); |
|---|
| 40 | void invisibleClicked(); |
|---|
| 41 | void offlineClicked(); |
|---|
| 42 | }; |
|---|
| 43 | |
|---|
| 44 | #endif //ACCOUNTMONITORITEM_H |
|---|
Note: See
TracBrowser
for help on using the repository browser.