diff --git a/src/blackcore/afv/dto.h b/src/blackcore/afv/dto.h index a0f6d42f0..7610393bc 100644 --- a/src/blackcore/afv/dto.h +++ b/src/blackcore/afv/dto.h @@ -240,8 +240,10 @@ namespace BlackCore //! AudioTxOnTransceiversDto struct AudioTxOnTransceiversDto { + //! Names @{ static QByteArray getDtoName() { return "AudioTxOnTransceiversDto"; } static QByteArray getShortDtoName() { return "AT"; } + //! @} //! Properties @{ std::string callsign; @@ -256,8 +258,10 @@ namespace BlackCore //! AudioRxOnTransceiversDto struct AudioRxOnTransceiversDto { + //! Names @{ static QByteArray getDtoName() { return "AudioRxOnTransceiversDto"; } static QByteArray getShortDtoName() { return "AR"; } + //! @} //! Properties @{ std::string callsign; diff --git a/src/blackcore/context/contextaudio.h b/src/blackcore/context/contextaudio.h index e5eacfb45..47061b9cd 100644 --- a/src/blackcore/context/contextaudio.h +++ b/src/blackcore/context/contextaudio.h @@ -136,9 +136,8 @@ namespace BlackCore //! \return input and output devices BlackMisc::Audio::CAudioDeviceInfoList getCurrentAudioDevices() const; - //! Set current audio device - //! \param audioDevice can be input or audio device - void setCurrentAudioDevices(const BlackMisc::Audio::CAudioDeviceInfo &audioDevice, const BlackMisc::Audio::CAudioDeviceInfo &outputDevice); + //! Set current audio devices + void setCurrentAudioDevices(const BlackMisc::Audio::CAudioDeviceInfo &inputDevice, const BlackMisc::Audio::CAudioDeviceInfo &outputDevice); //! Volume //! @{ @@ -192,6 +191,7 @@ namespace BlackCore //! .unmute unmute BlackCore::Context::CContextAudio //! .vol .volume volume 0..100 set volume BlackCore::Context::CContextAudio //! + //! Parse command line virtual bool parseCommandLine(const QString &commandLine, const BlackMisc::CIdentifier &originator) override; // ------------- DBus --------------- diff --git a/tests/blackcore/fsd/testfsdclient/testfsdclient.cpp b/tests/blackcore/fsd/testfsdclient/testfsdclient.cpp index 4faa1a39f..554f52253 100644 --- a/tests/blackcore/fsd/testfsdclient/testfsdclient.cpp +++ b/tests/blackcore/fsd/testfsdclient/testfsdclient.cpp @@ -739,36 +739,39 @@ namespace BlackFsdTest void CTestFSDClient::testAuth() { - quint16 clientId = 0xb9ba; - QString privateKey("727d1efd5cb9f8d2c28372469d922bb4"); + /** TODO RR fix with the test key + + const quint16 clientId = 0xb9ba; + const QString privateKey("727d1efd5cb9f8d2c28372469d922bb4"); Q_UNUSED(clientId) Q_UNUSED(privateKey) - // TODO fix with the test key -// QString initialChallenge("a054064f45cb6d6a6f1345"); + QString initialChallenge("a054064f45cb6d6a6f1345"); -// vatsim_auth *auth = vatsim_auth_create(m_clientId, qPrintable(m_privateKey)); -// vatsim_auth_set_initial_challenge(auth, qPrintable(initialChallenge)); + vatsim_auth *auth = vatsim_auth_create(m_clientId, qPrintable(m_privateKey)); + vatsim_auth_set_initial_challenge(auth, qPrintable(initialChallenge)); -// QString challenge("0b8244efa2bd0f6da0"); -// char buffer[33]; -// vatsim_auth_generate_response(auth, qPrintable(challenge), buffer); -// QString response(buffer); -// QCOMPARE(response, "df00748db5ec02ea416ab79b441a88f7"); + QString challenge("0b8244efa2bd0f6da0"); + char buffer[33]; + vatsim_auth_generate_response(auth, qPrintable(challenge), buffer); + QString response(buffer); + QCOMPARE(response, "df00748db5ec02ea416ab79b441a88f7"); -// challenge = "6d1beed4fa142b9b5567c0"; -// vatsim_auth_generate_response(auth, qPrintable(challenge), buffer); -// response = QString(buffer); -// QCOMPARE(response, "5d7e48df0ff0f52b268d4e23d32483c2"); + challenge = "6d1beed4fa142b9b5567c0"; + vatsim_auth_generate_response(auth, qPrintable(challenge), buffer); + response = QString(buffer); + QCOMPARE(response, "5d7e48df0ff0f52b268d4e23d32483c2"); -// vatsim_auth_generate_challenge(auth, buffer); -// QVERIFY(QString(buffer).length() > 0); + vatsim_auth_generate_challenge(auth, buffer); + QVERIFY(QString(buffer).length() > 0); -// char sysuid[50]; -// vatsim_get_system_unique_id(sysuid); -// qDebug() << sysuid; + char sysuid[50]; + vatsim_get_system_unique_id(sysuid); + qDebug() << sysuid; + **/ } + //! Ping the server bool pingServer(const CServer &server) { QString m; @@ -803,7 +806,7 @@ namespace BlackFsdTest QCOMPARE(CConnectionStatus::Connected, arguments.at(1).value().getConnectionStatus()); QSignalSpy pongSpy(client, &CFSDClient::pongReceived); - connect(client, &CFSDClient::pongReceived, [](const QString &sender, double elapsedTimeM) + connect(client, &CFSDClient::pongReceived, [](const QString & sender, double elapsedTimeM) { qDebug() << "Received pong from" << sender << "in" << elapsedTimeM << "ms"; }); diff --git a/tests/blackcore/testconnectivity/testconnectivity.cpp b/tests/blackcore/testconnectivity/testconnectivity.cpp index a7e168341..39f7122f5 100644 --- a/tests/blackcore/testconnectivity/testconnectivity.cpp +++ b/tests/blackcore/testconnectivity/testconnectivity.cpp @@ -46,7 +46,7 @@ namespace BlackCoreTest //! Connecting test server void connectServer(); - //! ping test server + //! Ping test server void pingServer(); //! Test the watchdog BlackCore::Db::CNetworkWatchdog