summaryrefslogtreecommitdiff
path: root/distfoldd/discoverer.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2016-05-23 00:20:25 +0200
committerJavier <dev.git@javispedro.com>2016-05-23 00:20:25 +0200
commitf60d4bf53339876cf5dbf4382eafb8aad33a27c1 (patch)
treeee4b2b897438cdd0a6f037776f0e6e03803fa424 /distfoldd/discoverer.h
parent2e45a5a7776b79732cd500c7462574f8fbe7ca23 (diff)
downloaddistfold-f60d4bf53339876cf5dbf4382eafb8aad33a27c1.tar.gz
distfold-f60d4bf53339876cf5dbf4382eafb8aad33a27c1.zip
initial qt5 portqt5
Diffstat (limited to 'distfoldd/discoverer.h')
-rw-r--r--distfoldd/discoverer.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/distfoldd/discoverer.h b/distfoldd/discoverer.h
index ae106de..3a2bffc 100644
--- a/distfoldd/discoverer.h
+++ b/distfoldd/discoverer.h
@@ -7,10 +7,6 @@
#include <QtNetwork/QNetworkConfigurationManager>
#include <QtNetwork/QHostAddress>
#include <QtNetwork/QUdpSocket>
-#include <QtSystemInfo/QSystemNetworkInfo>
-#include <QtSystemInfo/QSystemAlignedTimer>
-
-QTM_USE_NAMESPACE
class Discoverer : public QObject
{
@@ -58,7 +54,6 @@ private slots:
void handleBroadcastMessage(const QHostAddress& sender, const QByteArray &data);
void handleHostSeen(const QUuid& hostUuid);
void handleTimerTimeout();
- void handleTimerError();
void handleOnlineStateChanged(bool online);
private:
@@ -72,10 +67,8 @@ private:
QUdpSocket *_sender;
quint32 _myId;
QNetworkConfigurationManager *_netConfig;
- QSystemNetworkInfo *_netInfo;
QDateTime _lastBroadcast;
- QSystemAlignedTimer *_timer;
- QTimer *_fallbackTimer;
+ QTimer *_timer;
QHash<QUuid, HostInfo> _knownHosts;
};