blob: af4ae9898db0ed326eedf06f8e220583814899cc (
plain)
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
|
#ifndef RECONNECTCONTROLLER_H
#define RECONNECTCONTROLLER_H
#include <QObject>
#include <QSocketNotifier>
class ReconnectTimer : public QObject
{
Q_OBJECT
public:
explicit ReconnectTimer(QObject *parent = 0);
~ReconnectTimer();
public slots:
void scheduleNextAttempt();
void stop();
signals:
void tryReconnect();
private slots:
void handleIphbActivity();
private:
void *_iphb;
QSocketNotifier *_notifier;
bool _active;
uint _counter;
};
#endif // RECONNECTCONTROLLER_H
|