-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathqaceschat.h
41 lines (34 loc) · 881 Bytes
/
qaceschat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef QACESCHAT_H
#define QACESCHAT_H
#include "qchatservice.h"
class QNetworkAccessManager;
class QAcesChat: public QChatService
{
Q_OBJECT
public:
explicit QAcesChat( QObject *parent = 0 );
virtual ~QAcesChat();
protected:
virtual void timerEvent( QTimerEvent * );
private:
void loadSettings();
void getLastMessage();
public slots:
virtual void connect();
virtual void disconnect();
virtual void reconnect();
private slots:
void onLastMessageLoaded();
void onLastMessageLoadError();
void onChatInfoLoaded();
void onChatInfoLoadError();
private:
QNetworkAccessManager *nam_;
QString channelName_;
int lastMessageId_;
int updateChatInfoTimerId_;
int reconnectTimerId_;
int updateChatInfoInterval_;
int reconnectInterval_;
};
#endif // QACESCHAT_H