source: qutecom-coip/gui/src/account/accountmonitoritem.h @ 286:dc0e36586866

Last change on this file since 286:dc0e36586866 was 286:dc0e36586866, checked in by laurent <laurent@…>, 23 months ago

registering indicator process

File size: 1.3 KB
Line 
1#ifndef ACCOUNTMONITORITEM_H
2#define ACCOUNTMONITORITEM_H
3
4#include <QtGui>
5#include <coip/coip.h>
6
7namespace Ui {
8    class AccountMonitorItem;
9}
10
11class AccountMonitorItem :public QWidget
12{
13    Q_OBJECT
14
15private:
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       
30public:
31    explicit AccountMonitorItem(std::string accountId, QWidget *parent = 0);
32    ~AccountMonitorItem();
33
34protected:
35    void changeEvent(QEvent *e);
36        void timerEvent(QTimerEvent *e);
37       
38private 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.