Commit Graph

16 Commits

Author SHA1 Message Date
Klaus Basan
97dda0b499 The meta type based status to string conversion did not work,
as the metatype for the interface cannot be registered.

Changed to a simple static method, as it will be replaced by I18N
anyway sooner or later.
2014-01-17 18:38:06 +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
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
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
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
e607121cc4 Updating IContext to our current style and making it less reliant on macros.
Updating code that uses IContext to a more conformant pattern of usage.
2013-10-05 18:12:16 +01:00
Mathew Sutcliffe
0107d24523 create a dummy implementation of INetwork for testing purposes, and use it in the atc list unittest 2013-08-24 16:54:36 +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
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
82f5661aa6 info queries and replies, and misc tidy-up (refs #22) 2013-07-05 21:11:44 +01:00
Mathew Sutcliffe
fd3dc4dbe9 first iteration on #22 shimlib integration 2013-07-04 22:14:06 +01:00