Doxygen/style

This commit is contained in:
Klaus Basan
2019-10-19 02:41:48 +02:00
parent 7a1b5a0237
commit afe72b029f
4 changed files with 32 additions and 25 deletions

View File

@@ -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;

View File

@@ -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
//! </pre>
//! Parse command line
virtual bool parseCommandLine(const QString &commandLine, const BlackMisc::CIdentifier &originator) override;
// ------------- DBus ---------------

View File

@@ -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;

View File

@@ -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