diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-04 19:15:54 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-04 19:48:11 +0100 |
commit | b89699c7551f768bf4ff47820543f8c7b8c794af (patch) | |
tree | c3a21ec23a40250ec54b97fe17b9035a932cfaf8 /proto-fg | |
parent | 068e0c7d432ede0a388fe1478b5146fcf1809315 (diff) |
modules: make names unique
Diffstat (limited to 'proto-fg')
-rw-r--r-- | proto-fg/ftnoir_protocol_fg.cpp | 6 | ||||
-rw-r--r-- | proto-fg/ftnoir_protocol_fg.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/proto-fg/ftnoir_protocol_fg.cpp b/proto-fg/ftnoir_protocol_fg.cpp index 599a4d2c..3df51c3e 100644 --- a/proto-fg/ftnoir_protocol_fg.cpp +++ b/proto-fg/ftnoir_protocol_fg.cpp @@ -13,7 +13,7 @@ // For Todd and Arda Kutlu -void FTNoIR_Protocol::pose(const double* headpose) { +void flightgear::pose(const double* headpose) { FlightData.x = headpose[TX] * 1e-2; FlightData.y = headpose[TY] * 1e-2; FlightData.z = headpose[TZ] * 1e-2; @@ -30,9 +30,9 @@ void FTNoIR_Protocol::pose(const double* headpose) { (void) outSocket.writeDatagram(reinterpret_cast<const char*>(&FlightData), sizeof(FlightData), destIP, static_cast<quint16>(destPort)); } -bool FTNoIR_Protocol::correct() +bool flightgear::correct() { return outSocket.bind(QHostAddress::Any, 0, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint); } -OPENTRACK_DECLARE_PROTOCOL(FTNoIR_Protocol, FGControls, FTNoIR_ProtocolDll) +OPENTRACK_DECLARE_PROTOCOL(flightgear, FGControls, flightgearDll) diff --git a/proto-fg/ftnoir_protocol_fg.h b/proto-fg/ftnoir_protocol_fg.h index 3cacf1a5..070ca571 100644 --- a/proto-fg/ftnoir_protocol_fg.h +++ b/proto-fg/ftnoir_protocol_fg.h @@ -31,7 +31,7 @@ struct settings : opts { {} }; -class FTNoIR_Protocol : public IProtocol +class flightgear : public IProtocol { public: bool correct(); @@ -61,7 +61,7 @@ private slots: void doCancel(); }; -class FTNoIR_ProtocolDll : public Metadata +class flightgearDll : public Metadata { public: QString name() { return QString("FlightGear"); } |