Overte C++ Documentation
ConnectionMonitor.h
1 //
2 // ConnectionMonitor.h
3 // interface/src
4 //
5 // Created by Ryan Huffman on 8/4/15.
6 // Copyright 2015 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
12 #ifndef hifi_ConnectionMonitor_h
13 #define hifi_ConnectionMonitor_h
14 
15 #include <QObject>
16 #include <QTimer>
17 
18 class QUrl;
19 class QString;
20 
21 class ConnectionMonitor : public QObject {
22  Q_OBJECT
23 public:
24  void init();
25 
26 signals:
27  void setRedirectErrorState(QUrl errorURL, QString reasonMessage = "", int reasonCode = -1, const QString& extraInfo = "");
28 
29 private slots:
30  void startTimer();
31  void stopTimer();
32 
33 private:
34  QTimer _timer;
35 };
36 
37 #endif // hifi_ConnectionMonitor_h