Commit Graph

157 Commits

Author SHA1 Message Date
Klaus Basan
f8c83ce2a3 some fixes
* as of slack discussion with MG, made area finding a bit more robust
* removed unused function in keypadarea
* added unit test subproject for GUI
2015-11-19 20:57:37 +00:00
Klaus Basan
938c0f3dc8 refs #445, settings for global network/readers values 2015-11-19 20:57:32 +00:00
Klaus Basan
edf8191969 refs #445, unit tests
* tests for DB reading
* adjusted other unit tests (livery, formatting, doxygen)
2015-11-19 20:57:18 +00:00
Klaus Basan
dc918dfaba Moved some samples into unit tests 2015-05-30 18:18:47 +02:00
Roland Winklmeier
041c97be75 Fix unit test return values 2015-05-30 16:59:55 +02:00
Klaus Basan
2d20f5bf9c refs #420, MS review
Fixes as described here https://dev.vatsim-germany.org/issues/420#note-5
2015-05-22 03:08:29 +02:00
Klaus Basan
104122023c Aircraft ICAO data should use ICAO code as attribute, this somehow got lost in the merge session, re-applied 2015-05-17 20:29:06 +02:00
Mathew Sutcliffe
b65232b202 MS & KB workshop: ICAO class renamings. 2015-05-12 22:47:54 +01:00
Klaus Basan
018c5ae1bf refs #395, integrated aircraft airspace snapshot / analyzer into remote provider
* added snapshot class
* added snapshot in analyzer, signal for new snapshot
* made all provider signals available in CSimulator
* added finders in CSimulatedAircraftList
* moved COwnAircraftProviderDummy into own file
2015-05-12 21:03:32 +01:00
Klaus Basan
6debd33b4f refs #395, turned remote aircraft provider interface into thread safe interfaces
* references gone, situations, parts, aircraft now as threadsafe copy
* read only interface gone (no longer references, so no longer needed)
2015-05-12 20:46:45 +01:00
Klaus Basan
48188dd28d refs #395, moved thread safe aircraft parts / situations (from interpolator) to airspace
* access via provider, access now possible also beyond the scope of interpolator
* will be used in (to be written airpace analyzer)
* renamed some member functions as required
* fixed some asserts / Doxygen comments
* adjusted unit tests
* added vtolAircraft flag for interpolator, not fully used everywhere

remarks: update signals for parts / situation still only needed in XP driver
2015-05-12 20:46:38 +01:00
Roland Winklmeier
793fcbfd15 refs #403 refactor project files
* Use source path and build path instead of relative ones
* Unify pre target dependencies in libraries.pri
2015-05-05 21:29:46 +02:00
Klaus Basan
0ab755d510 refs #396 subfolders and renamed callsign list to callsign set
* subfolder audio
* subfolder geo
* adjusted samples, tests ....
2015-04-07 19:22:23 +02:00
Klaus Basan
32f60722c8 refs #396, move subproject BlackSim into BlackMisc::Simulation
* removed unused samples / tests
* fixed found Doxygen issues
* removed blacksimfreefunctions, now in BlackMisc::Simulation::registerMetadata()
* samples_vetcor_geo to samples_geo
2015-04-07 19:22:16 +02:00
Roland Winklmeier
78d3350bf3 refs #396 move Blackmisc Aviation classes into subfolder 2015-04-07 18:20:20 +02:00
Roland Winklmeier
70e42c0bee Enable network auto tests again 2015-03-24 02:03:04 +01:00
Klaus Basan
3560508154 Set simulator info when connecting to network 2015-03-20 17:10:51 +01:00
Klaus Basan
5ed95aee3d refs #391, allow to send aircraft parts from GUI
* GUI component for aircraft parts
* remote aircraft selector component
* Adjusted GUI for internals component
* Enable / disable debug messages from GUI
* Allow to init engines directly
* Removed unused async sort in sequence

In same step fixed found issues in interpolator
* allow to set max rendered aircraft
2015-03-20 17:08:23 +01:00
Klaus Basan
f31445e873 refs #386, further improvements on interpolation
* extended unit tests for interpolator / parts testing
* allow to skip sorting when splitting by time
* update ot aircraft to FSX in own member function
* Skip time sync parts (FSX) when disabled
2015-03-20 17:08:14 +01:00
Klaus Basan
f525e3bc2e refs #386, further tests for interpolator
* calculate single vs. calculate all interpolations upfront
* added clear for interpolator
2015-03-20 17:01:12 +01:00
Klaus Basan
bd58475436 refs #369, unit test for interpolator 2015-03-20 16:49:11 +01:00
Klaus Basan
58b56ba2f3 refs #369, revised interpolator, removed addAircraftSituation 2015-03-20 16:32:11 +01:00
Klaus Basan
880bb53e3d refs #369, changed for own aircraft provider
* CLI client
* test network
* GUI/GUI components
2015-03-20 16:30:52 +01:00
Klaus Basan
ce86c902b5 Upfront of refs #369
* consolidated ICoordinateGeodetic (e.g. fixed nested properties)
* shifted common functionality for objects/containers with callsign into interface
* shifted common functionality for objects/containers with geo position into interface
* shifted common functionality for objects/containers with timestamp into interface
* updated corresponding value objects / specialized lists
* adjusted all places where renamed functions are used
2015-03-20 16:30:18 +01:00
Roland Winklmeier
e75b1360bb Fix read access violation in test_blackcore 2014-12-27 11:12:07 +01:00
Roland Winklmeier
3b32991fc0 Update test user in BlackCore network unit tests 2014-06-13 00:45:03 +02:00
Mathew Sutcliffe
903ddf7841 fixed compiler warnings detected by jenkins build server 2014-04-07 15:47:12 +01:00
Roland Winklmeier
7f333da322 Adapted basic interpolator tests
refs #169
2014-03-30 13:46:10 +02:00
Roland Winklmeier
fcbbe694ec Refactored Interpolator to be an abstract interface class
CInterpolator is now an IInterpolator interface. Sublcass in order
to implement different types of interpolation.

refs #169
2014-03-30 13:45:04 +02:00
Roland Winklmeier
c02e2732ff Enable auto tests for test_blackmisc and test_blackcore
make check will run them automatically now.
2014-03-27 14:52:43 +01:00
Roland Winklmeier
f1bf03067b Test executables should return instead of entering the event loop. The
test cases itself will run their own event loop anyway.
2014-03-27 14:51:58 +01:00
Mathew Sutcliffe
cf10f9cc35 fixed new compiler error due to MSVC incorrect handling of
capturing the this pointer in a lambda inside another lambda
2014-03-26 13:34:13 +00:00
Roland Winklmeier
e978b6dee1 Central build configuration
* config.pri: Build configuration version
* library.pri project library dependencies
* build.pri: compiler/qmake configuration

refs #145
2014-03-11 22:01:31 +01:00
Klaus Basan
c46878b873 Changed unit test testnetwork to reflect new status Disconnecting, then Disconnected 2014-02-07 03:05:35 +01: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
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
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
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
Klaus Basan
ab17dabd5b samples and tests for all kbatclist branch changes
refs #81
2014-01-08 01:00:28 +00:00
Klaus Basan
c6da7b0d35 removing unneeded code
refs #81
2014-01-08 00:58:08 +00:00
Mathew Sutcliffe
ac1b014f1b minor fix, only in doxygen comments 2013-10-21 03:43:09 +01: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
5483f71c9b test_blackcore.pro includes externals.pri
removed TODO comments
fixed mistake regarding backslash line continuations
2013-09-21 14:50:01 +01:00
Mathew Sutcliffe
00473e6f5f improved error reporting in BlackCoreTest::Expect 2013-09-03 19:29:04 +01:00
Mathew Sutcliffe
891d47c8ff Pure Qt/C++ test harness for INetwork 2013-09-01 21:09:22 +01:00
Mathew Sutcliffe
7a7fd69ee1 Perl-based test harness for the commandline client sample 2013-08-31 01:04:34 +01:00
Mathew Sutcliffe
0ae6ae5fea fixed atclist unittest: call QCoreApplication::processEvents() after each signal is emitted, because they use Qt::QueuedConnection 2013-08-29 00:12:57 +01:00
Mathew Sutcliffe
20c33bf77c Merge branch 'fsd' 2013-08-28 23:29:10 +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
9b239f12aa fixes for MinGW, including adding CONFIG += c++11 in all qmake project files 2013-08-19 18:46:37 +01:00