Commit Graph

69 Commits

Author SHA1 Message Date
Roland Winklmeier
cb7ad005b0 refs #320 port Network to new vatlib
* CNetworkVatlib
* Contexts
* Samples
2014-12-27 11:08:32 +01:00
Mathew Sutcliffe
a294e8db0f refs #336 Using the new CLogMessage syntax to log messages. 2014-10-16 17:05:50 +01:00
Mathew Sutcliffe
5d123f798a refs #316 Changed blackcore to use CLogMessage to emit messages.
Also changed functions which always returned CStatusMessageList containing a single CStatusMessage,
to return CStatusMessage instead for simplicity.
2014-10-04 22:16:43 +01:00
Mathew Sutcliffe
2e23f2fd8d refs #246 refactored FSIPI(R) custom packet encode/decode into INetwork 2014-06-14 16:52:50 +01:00
Mathew Sutcliffe
ef1c5d0d77 refs #246 style: rename package to packet 2014-06-14 16:52:41 +01:00
Klaus Basan
63b0fac72f Some bugfixes
* Missing registration
* wrong frequency in text messages, also some minor tweaks in text message
2014-06-09 14:44:23 +02:00
Klaus Basan
dac556c6e9 refs #262, fix update of aircraft position
Described here (3): https://dev.vatsim-germany.org/boards/22/topics/1792?r=1801#message-1801

* Also renamed: setOwnAircraftAvionics -> setOwnCockpit to be consistent
* Removed outdated methods
2014-06-09 14:44:19 +02:00
Klaus Basan
226edda23b refs #219, load flight plan
* fixed issue with parsing, only default locale is used. Now user's local possible
* allow to load FP for other callsigns as well (voice capabilities)
* Improved handling of CTime, inclusive bug fixes and time formatting
* Max. lengths for FP fields as const value (so we can change it if required)
* Load FP from GUI component
* Samples for PQ classes
* Adjusted depending classes (e.g. client)
2014-06-09 14:43:57 +02:00
Mathew Sutcliffe
356f134ab8 refs #218 enable retreiving user's flightplan from the network
after it was potentially amended by a controller
2014-05-16 13:44:24 +01:00
Mathew Sutcliffe
2effc2873f fixed truncation of flightplan remarks string 2014-05-16 13:44:23 +01:00
Klaus Basan
57b3a0bcb8 refs #171, added support for custom packages 2014-05-06 21:47:25 +02:00
Klaus Basan
61affc3d88 Added sendUserInfoQuery for experimental reasons. Can only be used by supervisors, but interesting for some tests.
Maybe removed again later, but does not harm anything.
2014-05-06 21:47:22 +02:00
Klaus Basan
580ec3d8c8 Formatting, comments, typos, or minor tweaks
* Aircraft ICAO class: hasXX methods (hasAircraftCombinedType(), ..)
* Index Variant map, contains(index)
* Deleted context_network_textmessages.cpp and moved it into impl.cpp (this was only 1 method)
* Fixed bug refs#228
2014-05-06 21:47:10 +02:00
Klaus Basan
36dbcc6b57 refs #217, Project class providing information for compile configuration
* changed .pro / .pri as required
* Used info from project class in network_vatlib
* Checks / info in GUI/core (e.g. console)
* const * versions of systemNameAndVersion / simulators, as mentioned in https://dev.vatsim-germany.org/issues/217#note-4
2014-04-29 01:53:09 +02:00
Klaus Basan
82baf72721 refs #216, adjusted vatlib for ICAO class 2014-04-28 20:35:47 +02:00
Mathew Sutcliffe
37296e1822 refs #179 & #147 Added INetwork methods getStatusUrls and getKnownServers.
Added CServer member isAcceptingConnections.
2014-04-03 23:08:09 +01:00
Mathew Sutcliffe
da5a42c556 refs #179 sendCustomPacket slot and customPacketReceived signal 2014-04-03 23:08:07 +01:00
Mathew Sutcliffe
fde307e661 refs #179 don't call terminate from onKicked, as the shim lib does this now 2014-04-03 23:08:05 +01:00
Mathew Sutcliffe
6558052757 refs #179 using the correct capabilities string constant for stealth mode 2014-04-03 23:08:03 +01:00
Mathew Sutcliffe
8e732b1ad6 refs #179
added ConnectionStatus enum values DisconnectedFailed and DisconnectedLost
added extra argument to connectionStatusChanged signal, containing the socket error message
2014-04-03 23:08:01 +01:00
Mathew Sutcliffe
b4256298e7 refs #48 INetwork sending flight plans 2014-04-03 23:06:54 +01:00
Klaus Basan
bbb4ddbaef refs #196, fixed wrong inits with ModeS instead of StateStdby (Transponder) 2014-03-27 01:55:19 +01:00
Klaus Basan
948947f8d7 Fixed conversion of new Cvatlib_Network::connStatus_ConnectionLost: 2014-03-26 19:50:52 +01:00
Klaus Basan
2911c1d14a refs #127, CAircraftIcao: rename members 2014-03-11 01:28:27 +01:00
Klaus Basan
b115e3901d refs #146 , check for valid transponder code. During testing I ran into a situation, where I've received an invalid XPDR code from the network.
This check resets XPDR to 0000 , further logging could be provided.
2014-02-26 03:44:37 +01:00
Mathew Sutcliffe
06a7b0b32f refs #91 & #124 Doxygen, override, and comment fixes in network.
Changed FILE_PATTERNS config in Doxyfile so Doxygen only looks at headers, not cpp files.
Reverts some changes of commit:116db9a (e.g. terminate() is an internal signal of CNetworkVatlib, but still needs a doxy comment because all signals are public).
2014-02-08 14:20:39 +00:00
Mathew Sutcliffe
0a6030f5df refs #92 fixing warnings when compiling for 64bits due to conversions between size_t and int 2014-02-07 22:51:23 +00:00
Klaus Basan
116db9a425 refs #91 & #124 doxygen fixes, style/comment changes, typos, and override / nullptr keywords
Remark: Doxygen <70 warnings
2014-02-07 01:09:31 +01:00
Klaus Basan
79f5b6fcd3 Added / prepared for state disconnecting:
Taking up the idea of MS (disconnecting),
and based on a real world issue where the transition state
of disconnecting was still handled as connected.
2014-02-05 23:16:19 +00:00
Mathew Sutcliffe
bb4fe3f858 fixed missing delimiter in capabilities string when using stealth mode 2014-02-01 18:19:48 +00:00
Mathew Sutcliffe
7316fb8398 changed a couple more INetwork method names for consistency 2014-01-25 19:36:40 +00:00
Mathew Sutcliffe
ff3010931f connection status improvement, now we also check the return value of ConnectAndLogon
refs #101
2014-01-25 19:36:39 +00:00
Mathew Sutcliffe
0af8c9eb3e refs #100 Rationalization of INetwork signals and slots
* Naming convention: "preset" only when disconnected, "send" only when connected, "set" both
* Every asynchronous pair is named as in "sendFooQuery" and "fooReplyReceived"
* Moved LoginMode from CNetworkVatlib constructor to INetwork::presetLoginMode
* Callsign and ICAO codes can only be changed when disconnected, so have their own "preset" methods
** Callsign and ICAO parts of setOwnAircraft are therefore ignored
** CUser part of setOwnAircraft is ignored, in favour of the CUser part of presetServer
* CNetworkVatlib takes care of reconstructing m_net if the LoginMode is changed
2014-01-25 19:36:37 +00:00
Klaus Basan
233bd51bfd Fixed ATIS bug, ATIS was applyIf as IndexAtisMessage (correct IndexAtis).
Also fixed appending CR.
2014-01-18 13:41:11 +01:00
Klaus Basan
16dc959662 Fixed 4 gcc warnings (2x order, 1x explicit constructor, 1x GUI / from related) 2014-01-17 20:05:00 +01:00
Klaus Basan
bddf54d770 Merge branch 'master' of dev.vatsim-germany.org:vatpilotclient/client 2014-01-16 02:05:57 +01:00
Klaus Basan
34ef6e47ae Changed when m_updateTimer is started:
Now starts when connection is established, and stops when terminated.
Also added an extra check in update, as the session check is
not sufficient.
2014-01-16 02:03:46 +01:00
Klaus Basan
4f94f43e0d Setting own aircraft did not start the udpate timer.
Hence no updates from the network were received.
2014-01-15 23:51:15 +01:00
Roland Winklmeier
e36448f0a1 Replaced c++ standard integer types with Qt types
In order to be consistent, all standard integer types have been
replaced by the equivalent Qt ones in voice/audio code.
Projects covered
- BlackCore
- BlackMisc
- sample_voice_client

refs #99
2014-01-15 21:12:01 +01:00
Roland Winklmeier
f50fe098e3 Fix compile error in qFatal caused by type change to QString
msg was changed from type "const char*" to QString, but qFatal is
still expecting a "const char*" as its argument. Passed the QString
value to the qPrintable macro to fix it.
2014-01-15 20:39:15 +01:00
Mathew Sutcliffe
917e1829d1 reviewed backlog INetwork and CContextNetwork changes from kbatclist
* INetwork setOwnAircraft slots
* ATIS received shimlib callback triggers separate VoiceRoom and LogoffTime signals
* INetwork statusMessage signal emitted in response to shimlib errors
* INetwork::ConnectionStatus added a DisconnectedError value and toString conversion
* INetwork::isConnected method
* Argument in CNetworkVatlib constructor to enable stealth or observer mode
* Update CLI sample, tests, and CContextNetwork accordingly
2014-01-14 23:30:21 +00:00
Mathew Sutcliffe
84ec984e0e removed CNetworkDummy as it was not being used 2014-01-14 23:30:00 +00:00
Mathew Sutcliffe
60ad43d291 INetwork: removed the five connectionStatus signals and added one signal with an enum argument to replace them.
Requested by Klaus, to ease the implementation of signal consumers.
2014-01-11 17:59:45 +00:00
Mathew Sutcliffe
784d93139b CTextMessage: fromCallsign and toCallsign become sender and recipient (to and from looked like conversion methods)
refs #81
2014-01-10 00:20:22 +00:00
Mathew Sutcliffe
b475d7eff1 INetwork builds up the ATIS as it is received, line-by-line, keeping this implementation detail more encapsulated
refs #81
2014-01-09 01:16:01 +00:00
Klaus Basan
bb61654a29 style and consistency:
* rename CStatusMessages to CStatusMessageList
* rename NetworkVatlib to CNetworkVatlib
* replace all occurrences of Realname with RealName (correct camel case)
* CSequence method corresponding to CList::append is push_back
* don't compile the qdbuscpp2xml metadata plugin by default
* CAircraftIcao string members always trimmed and capitalized
* added CComSystem::roundTo25KHz
* using epsilon comparison in a couple of places

refs #81
2014-01-09 01:15:56 +00:00
Mathew Sutcliffe
b5c3a5543f update CNetworkVatlib to new shimlib version with Create static member function
refs #81
2014-01-08 01:01:31 +00:00
Mathew Sutcliffe
c77951743e INetwork: refactor request/reply pattern and sending position updates to be more encapsulated
refs #81
2014-01-08 01:00:17 +00:00
Klaus Basan
388d297a2d update client version numbers passed to shimlib
refs #81
2014-01-08 00:59:56 +00:00
Klaus Basan
3d48b29678 fixed formatting in error messages
refs #81
2014-01-08 00:59:52 +00:00