Commit Graph

36 Commits

Author SHA1 Message Date
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
Klaus Basan
8d15f307c2 let INetwork have a QObject parent
refs #81
2014-01-08 00:59:49 +00:00
Klaus Basan
535ea65a9a start using our value classes as arguments in INetwork signals and slots
refs #81
2014-01-08 00:59:45 +00:00
Klaus Basan
978f3c88e5 style changes and removals of typeid
refs #81
2014-01-08 00:57:43 +00:00
Mathew Sutcliffe
229d7c6068 initialize some pointers to null 2013-11-25 17:34:12 +00:00
Mathew Sutcliffe
01af31d4da fixed bug which was discovered due to a GCC warning 2013-09-24 01:04:22 +01:00
Mathew Sutcliffe
dc436735cc suppressing various GCC warnings 2013-09-24 01:01:07 +01:00
Mathew Sutcliffe
21b74dc912 fixed error caught by gcc 2013-09-01 17:55:38 +01:00
Mathew Sutcliffe
a011bb18e6 fixed compile errors caused by inconsistencies between merged branches 2013-08-29 00:02:47 +01:00
gmt2001
974f8b0141 Merge branch 'fsd' of git@dev.vatsim-germany.org:vatpilotclient/client.git into fsd 2013-08-24 09:42:29 -04:00
gmt2001
4edd28e0fa Fix for always getting suspended message 2013-08-24 09:41:45 -04:00
Mathew Sutcliffe
eade49799b corrected error message 2013-08-09 00:49:12 +01:00
Mathew Sutcliffe
0c310227b4 refs #22
* storing callsign and realname as QByteArray instead of QString makes it easier to ensure that C-strings passed to the shim have lifetimes coincident with the shim
* added a bit more error handling and invariant enforcement
* now we terminate the connection automatically on fatal errors
* added first doxygen comment (first of many)
2013-08-04 17:58:05 +01:00
gmt2001
d1e35c0b27 refs #22
Fix leading space and trailing LF in real name
Use proper const char* to const char* copy in NetworkVatlib::initiateConnection()
2013-08-04 01:54:03 -04:00
Mathew Sutcliffe
b8f26dce4a refs #22
* Implemented a few more signals
* Support for storing the INetwork object in the IContext
* Improved exception handling
* Fixed some mistakes
2013-07-31 21:51:18 +01:00
Mathew Sutcliffe
e64e7b75c2 a little bit more on info queries and replies (refs #22) 2013-07-06 00:30:45 +01:00
Mathew Sutcliffe
82f5661aa6 info queries and replies, and misc tidy-up (refs #22) 2013-07-05 21:11:44 +01:00
Mathew Sutcliffe
009bba1e54 error-handling tweaks (refs #22) 2013-07-05 18:48:58 +01:00
Mathew Sutcliffe
ab71d75683 groundwork for I18N of text sent over FSD (refs #22) 2013-07-05 16:42:35 +01:00
Mathew Sutcliffe
fd3dc4dbe9 first iteration on #22 shimlib integration 2013-07-04 22:14:06 +01:00