Enroute Flight Navigation
A navigation app for VFR pilots
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Classes
Class List
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
Enumerations
Enumerator
a
b
c
d
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
Files
File List
src
traffic
TrafficDataSource_AbstractSocket.h
1
/***************************************************************************
2
* Copyright (C) 2021-2024 by Stefan Kebekus *
3
* stefan.kebekus@gmail.com *
4
* *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 3 of the License, or *
8
* (at your option) any later version. *
9
* *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
14
* *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program; if not, write to the *
17
* Free Software Foundation, Inc., *
18
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19
***************************************************************************/
20
21
#pragma once
22
23
#include <QAbstractSocket>
24
25
#include "traffic/TrafficDataSource_Abstract.h"
26
27
28
namespace
Traffic {
29
41
42
class
TrafficDataSource_AbstractSocket
:
public
TrafficDataSource_Abstract
{
43
Q_OBJECT
44
45
public
:
52
explicit
TrafficDataSource_AbstractSocket
(
bool
isCanonical, QObject* parent);
53
54
protected
slots:
55
// Handle socket errors. This method will call
56
// TrafficDataSource_Abstract::setErrorString() with a suitable,
57
// human-readable, translated error message.
58
void
onErrorOccurred(QAbstractSocket::SocketError socketError);
59
60
// Handle socket state changes. This method will call
61
// TrafficDataSource_Abstract::setConnectivityStatus() with a suitable,
62
// human-readable, translated message.
63
void
onStateChanged(QAbstractSocket::SocketState socketState);
64
65
private
slots:
66
// Acquire or release WiFi lock
67
static
void
onReceivingHeartbeatChanged(
bool
receivingHB);
68
69
};
42
class
TrafficDataSource_AbstractSocket
:
public
TrafficDataSource_Abstract
{
…
};
70
71
}
// namespace Traffic
Traffic::TrafficDataSource_AbstractSocket::TrafficDataSource_AbstractSocket
TrafficDataSource_AbstractSocket(bool isCanonical, QObject *parent)
Default constructor.
Traffic::TrafficDataSource_Abstract::TrafficDataSource_Abstract
TrafficDataSource_Abstract(bool isCanonical, QObject *parent)
Default constructor.
Generated by
1.13.2