mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-02 07:05:38 +08:00
[doxygen] Fix broken groupings
This commit is contained in:
@@ -36,7 +36,8 @@ namespace BlackCore
|
||||
//! Success
|
||||
void success(const QString &callsign);
|
||||
|
||||
//! Delay plus/minus @{
|
||||
//! Delay plus/minus
|
||||
//! @{
|
||||
void increaseDelayMs(const QString &callsign);
|
||||
void decreaseDelayMs(const QString &callsign);
|
||||
//! @}
|
||||
|
||||
@@ -62,7 +62,8 @@ namespace BlackCore
|
||||
//! Clean
|
||||
void clear();
|
||||
|
||||
//! Add samples @{
|
||||
//! Add samples
|
||||
//! @{
|
||||
void addOpusSamples(const IAudioDto &audioDto, float distanceRatio);
|
||||
void addSilentSamples(const IAudioDto &audioDto);
|
||||
//! @}
|
||||
|
||||
@@ -96,7 +96,8 @@ namespace BlackCore
|
||||
this->stop();
|
||||
}
|
||||
|
||||
//! Number of encoded bytes @{
|
||||
//! Number of encoded bytes
|
||||
//! @{
|
||||
int opusBytesEncoded() const { return m_opusBytesEncoded; }
|
||||
void setOpusBytesEncoded(int opusBytesEncoded) { m_opusBytesEncoded = opusBytesEncoded; }
|
||||
//! @}
|
||||
@@ -113,7 +114,8 @@ namespace BlackCore
|
||||
// bool setVolume(double volume);
|
||||
|
||||
/* disabled as not needed
|
||||
//! The device's volume 0..1 @{
|
||||
//! The device's volume 0..1
|
||||
//! @{
|
||||
double getDeviceInputVolume() const;
|
||||
bool setDeviceInputVolume(double volume);
|
||||
//! @}
|
||||
|
||||
@@ -90,7 +90,8 @@ namespace BlackCore
|
||||
const BlackMisc::Audio::CAudioDeviceInfo &device() const { return m_device; }
|
||||
|
||||
/* disabled as not used
|
||||
//! The device's volume 0..1 @{
|
||||
//! The device's volume 0..1
|
||||
//! @{
|
||||
double getDeviceOutputVolume() const;
|
||||
bool setDeviceOutputVolume(double volume);
|
||||
//! @}
|
||||
|
||||
@@ -60,7 +60,8 @@ namespace BlackCore
|
||||
//! Volume
|
||||
double volume() const { return 1.0; }
|
||||
|
||||
//! Mute @{
|
||||
//! Mute
|
||||
//! @{
|
||||
bool getMute() const { return m_mute; }
|
||||
void setMute(bool value);
|
||||
//! @}
|
||||
@@ -68,7 +69,8 @@ namespace BlackCore
|
||||
//! \copydoc BlackSound::SampleProvider::ISampleProvider::readSamples
|
||||
virtual int readSamples(QVector<float> &samples, qint64 count) override;
|
||||
|
||||
//! Add samples @{
|
||||
//! Add samples
|
||||
//! @{
|
||||
void addOpusSamples(const IAudioDto &audioDto, uint frequency, float distanceRatio);
|
||||
void addSilentSamples(const IAudioDto &audioDto, uint frequency, float distanceRatio);
|
||||
//! @}
|
||||
|
||||
@@ -49,7 +49,8 @@ namespace BlackCore
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
//! AFV client properties @{
|
||||
//! AFV client properties
|
||||
//! @{
|
||||
Q_PROPERTY(double inputVolumePeakVU READ getInputVolumePeakVU NOTIFY inputVolumePeakVU)
|
||||
Q_PROPERTY(double outputVolumePeakVU READ getOutputVolumePeakVU NOTIFY outputVolumePeakVU)
|
||||
Q_PROPERTY(BlackCore::Afv::Clients::CAfvClient::ConnectionStatus connectionStatus READ getConnectionStatus NOTIFY connectionStatusChanged)
|
||||
@@ -100,7 +101,8 @@ namespace BlackCore
|
||||
void disconnectFromAndStop() { this->disconnectFrom(true); }
|
||||
//! @}
|
||||
|
||||
//! Audio devices @{
|
||||
//! Audio devices
|
||||
//! @{
|
||||
Q_INVOKABLE QStringList availableInputDevices() const;
|
||||
Q_INVOKABLE QStringList availableOutputDevices() const;
|
||||
//! @}
|
||||
@@ -121,7 +123,8 @@ namespace BlackCore
|
||||
void setMuted(bool mute);
|
||||
//! @}
|
||||
|
||||
//! Start/stop client @{
|
||||
//! Start/stop client
|
||||
//! @{
|
||||
void startAudio();
|
||||
void startAudio(const BlackMisc::Audio::CAudioDeviceInfo &inputDevice, const BlackMisc::Audio::CAudioDeviceInfo &outputDevice);
|
||||
Q_INVOKABLE void startAudio(const QString &inputDeviceName, const QString &outputDeviceName);
|
||||
@@ -134,7 +137,8 @@ namespace BlackCore
|
||||
bool isComUnitIntegrated() const { return m_integratedComUnit; }
|
||||
|
||||
/* NOT used
|
||||
//! The device's volume 0..1 @{
|
||||
//! The device's volume 0..1
|
||||
//! @{
|
||||
double getDeviceInputVolume() const;
|
||||
bool setDeviceInputVolume(double volume);
|
||||
double getDeviceOutputVolume() const;
|
||||
@@ -302,7 +306,8 @@ namespace BlackCore
|
||||
//! PTT status in this particular AFV client
|
||||
void ptt(bool active, BlackMisc::Audio::PTTCOM pttcom, const BlackMisc::CIdentifier &identifier);
|
||||
|
||||
//! VU levels @{
|
||||
//! VU levels
|
||||
//! @{
|
||||
void inputVolumePeakVU(double value);
|
||||
void outputVolumePeakVU(double value);
|
||||
//! @}
|
||||
|
||||
@@ -83,7 +83,8 @@ namespace BlackCore
|
||||
//! Get the URL
|
||||
const QString &getUrl() const { return m_addressUrl; }
|
||||
|
||||
//! User data @{
|
||||
//! User data
|
||||
//! @{
|
||||
const QString &getUserName() const { return m_username; }
|
||||
const QString &getPassword() const { return m_password; }
|
||||
const QString &getClient() const { return m_client; }
|
||||
|
||||
@@ -58,7 +58,8 @@ namespace BlackCore
|
||||
//! Is alive?
|
||||
bool isVoiceServerAlive() const { return m_connection.isVoiceServerAlive(); }
|
||||
|
||||
//! Receiving audio? @{
|
||||
//! Receiving audio?
|
||||
//! @{
|
||||
void setReceiveAudio(bool value) { m_connection.setReceiveAudio(value); }
|
||||
bool receiveAudio() const { return m_connection.isReceivingAudio(); }
|
||||
bool receiveAudioDto() const { return m_receiveAudioDto; }
|
||||
@@ -97,7 +98,8 @@ namespace BlackCore
|
||||
//! Authenticated since when
|
||||
qint64 secondsSinceAuthentication() const { return m_connection.secondsSinceAuthentication(); }
|
||||
|
||||
//! User data @{
|
||||
//! User data
|
||||
//! @{
|
||||
const QString &getUserName() const { return m_connection.getUserName(); }
|
||||
const QString &getCallsign() const { return m_connection.getCallsign(); }
|
||||
const QString &getPassword() const { static const QString e; return m_apiServerConnection ? m_apiServerConnection->getPassword() : e; }
|
||||
|
||||
@@ -40,17 +40,20 @@ namespace BlackCore
|
||||
//! Time since authentication
|
||||
qint64 secondsSinceAuthentication() const;
|
||||
|
||||
//! Servers alive @{
|
||||
//! Servers alive
|
||||
//! @{
|
||||
bool isVoiceServerAlive() const;
|
||||
bool isDataServerAlive() const;
|
||||
//! @}
|
||||
|
||||
//! Is connected? @{
|
||||
//! Is connected?
|
||||
//! @{
|
||||
bool isConnected() const { return m_connected; }
|
||||
void setConnected(bool connected) { m_connected = connected; }
|
||||
//! @}
|
||||
|
||||
//! Receiving audio? @{
|
||||
//! Receiving audio?
|
||||
//! @{
|
||||
bool isReceivingAudio() const { return m_receiveAudio; }
|
||||
void setReceiveAudio(bool receive) { m_receiveAudio = receive; }
|
||||
//! @}
|
||||
@@ -58,22 +61,26 @@ namespace BlackCore
|
||||
//! Crypto channels for voice and data
|
||||
void createCryptoChannels();
|
||||
|
||||
//! Tokens @{
|
||||
//! Tokens
|
||||
//! @{
|
||||
const PostCallsignResponseDto &getTokens() const { return m_tokens; }
|
||||
void setTokens(const PostCallsignResponseDto &dto) { m_tokens = dto; }
|
||||
//! @}
|
||||
|
||||
//! Callsign @{
|
||||
//! Callsign
|
||||
//! @{
|
||||
const QString &getCallsign() const { return m_callsign; }
|
||||
void setCallsign(const QString &callsign) { m_callsign = callsign; }
|
||||
//! @}
|
||||
|
||||
//! Uername @{
|
||||
//! Uername
|
||||
//! @{
|
||||
const QString &getUserName() const { return m_userName; }
|
||||
void setUserName(const QString &un) { m_userName = un; }
|
||||
//! @}
|
||||
|
||||
//! Timestamps @{
|
||||
//! Timestamps
|
||||
//! @{
|
||||
void setTsAuthenticatedToNow();
|
||||
void setTsHeartbeatToNow();
|
||||
//! @}
|
||||
|
||||
@@ -36,7 +36,8 @@ namespace BlackCore
|
||||
//! Ctor
|
||||
CCryptoDtoChannel(const CryptoDtoChannelConfigDto &channelConfig, int receiveSequenceHistorySize = 10);
|
||||
|
||||
//! Transmit key @{
|
||||
//! Transmit key
|
||||
//! @{
|
||||
QByteArray getTransmitKey(CryptoDtoMode mode);
|
||||
QByteArray getTransmitKey(CryptoDtoMode mode, uint &sequenceToSend);
|
||||
//! @}
|
||||
|
||||
@@ -141,17 +141,20 @@ namespace BlackCore
|
||||
return {};
|
||||
}
|
||||
|
||||
//! Header data @{
|
||||
//! Header data
|
||||
//! @{
|
||||
quint16 m_headerLength;
|
||||
CryptoDtoHeaderDto m_header;
|
||||
//! @}
|
||||
|
||||
//! Name data @{
|
||||
//! Name data
|
||||
//! @{
|
||||
quint16 m_dtoNameLength;
|
||||
QByteArray m_dtoNameBuffer;
|
||||
//! @}
|
||||
|
||||
//! Data @{
|
||||
//! Data
|
||||
//! @{
|
||||
quint16 m_dataLength;
|
||||
QByteArray m_dataBuffer;
|
||||
//! @}
|
||||
|
||||
@@ -27,7 +27,8 @@ namespace BlackCore
|
||||
//! Channel config DTO
|
||||
struct CryptoDtoChannelConfigDto
|
||||
{
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
QString channelTag;
|
||||
QByteArray aeadReceiveKey;
|
||||
QByteArray aeadTransmitKey;
|
||||
@@ -61,7 +62,8 @@ namespace BlackCore
|
||||
//! Voice server DTO
|
||||
struct VoiceServerConnectionDataDto
|
||||
{
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
QString addressIpV4; // Example: 123.123.123.123:50000
|
||||
QString addressIpV6; // Example: 123.123.123.123:50000
|
||||
CryptoDtoChannelConfigDto channelConfig;
|
||||
@@ -91,7 +93,8 @@ namespace BlackCore
|
||||
//! Callsign DTO
|
||||
struct PostCallsignResponseDto
|
||||
{
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
// DataServerConnectionDataDto DataServer;
|
||||
VoiceServerConnectionDataDto VoiceServer;
|
||||
bool isValid = false;
|
||||
@@ -120,7 +123,8 @@ namespace BlackCore
|
||||
//! Transceiver DTO
|
||||
struct TransceiverDto
|
||||
{
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
quint16 id;
|
||||
quint32 frequencyHz;
|
||||
double LatDeg = 0.0;
|
||||
@@ -160,7 +164,8 @@ namespace BlackCore
|
||||
//! Station DTO
|
||||
struct StationDto
|
||||
{
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
QUuid id;
|
||||
QString name;
|
||||
quint32 frequencyHz;
|
||||
@@ -182,7 +187,8 @@ namespace BlackCore
|
||||
//! Heartbeat DTO
|
||||
struct HeartbeatDto
|
||||
{
|
||||
//! Name @{
|
||||
//! Name
|
||||
//! @{
|
||||
static QByteArray getDtoName() { return "HeartbeatDto"; }
|
||||
static QByteArray getShortDtoName() { return "H"; }
|
||||
//! @}
|
||||
@@ -194,7 +200,8 @@ namespace BlackCore
|
||||
//! Heartbeat DTO
|
||||
struct HeartbeatAckDto
|
||||
{
|
||||
//! Name @{
|
||||
//! Name
|
||||
//! @{
|
||||
static QByteArray getDtoName() { return "HeartbeatAckDto"; }
|
||||
static QByteArray getShortDtoName() { return "HA"; }
|
||||
//! @}
|
||||
@@ -205,7 +212,8 @@ namespace BlackCore
|
||||
//! Receive transceiver DTO
|
||||
struct RxTransceiverDto
|
||||
{
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
uint16_t id;
|
||||
uint32_t frequency;
|
||||
float distanceRatio;
|
||||
@@ -240,12 +248,14 @@ namespace BlackCore
|
||||
//! AudioTxOnTransceiversDto
|
||||
struct AudioTxOnTransceiversDto
|
||||
{
|
||||
//! Names @{
|
||||
//! Names
|
||||
//! @{
|
||||
static QByteArray getDtoName() { return "AudioTxOnTransceiversDto"; }
|
||||
static QByteArray getShortDtoName() { return "AT"; }
|
||||
//! @}
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
std::string callsign;
|
||||
uint sequenceCounter;
|
||||
std::vector<char> audio;
|
||||
@@ -258,12 +268,14 @@ namespace BlackCore
|
||||
//! AudioRxOnTransceiversDto
|
||||
struct AudioRxOnTransceiversDto
|
||||
{
|
||||
//! Names @{
|
||||
//! Names
|
||||
//! @{
|
||||
static QByteArray getDtoName() { return "AudioRxOnTransceiversDto"; }
|
||||
static QByteArray getShortDtoName() { return "AR"; }
|
||||
//! @}
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
std::string callsign;
|
||||
uint sequenceCounter;
|
||||
std::vector<char> audio;
|
||||
|
||||
@@ -26,7 +26,8 @@ namespace BlackCore
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
//! Map reader properties @{
|
||||
//! Map reader properties
|
||||
//! @{
|
||||
Q_PROPERTY(CSampleAtcStationModel *atcStationModel READ getAtcStationModel CONSTANT)
|
||||
//! @}
|
||||
|
||||
|
||||
@@ -35,7 +35,8 @@ namespace BlackCore
|
||||
//! Ctor
|
||||
CSampleAtcStation(const QString &callsign, const BlackCore::Afv::TransceiverDto &transceiver);
|
||||
|
||||
//! Getter @{
|
||||
//! Getter
|
||||
//! @{
|
||||
const QString &callsign() const { return m_callsign; }
|
||||
QString formattedFrequency() const;
|
||||
double latitude() const;
|
||||
|
||||
@@ -167,7 +167,8 @@ namespace BlackCore
|
||||
};
|
||||
Q_DECLARE_FLAGS(MatchingReadiness, MatchingReadinessFlag)
|
||||
|
||||
//! As string @{
|
||||
//! As string
|
||||
//! @{
|
||||
static const QString &enumFlagToString(MatchingReadinessFlag r);
|
||||
static QString enumToString(MatchingReadiness r);
|
||||
//! @}
|
||||
|
||||
@@ -317,7 +317,6 @@ namespace BlackCore
|
||||
|
||||
//! cmd line arguments as string
|
||||
virtual QString cmdLineArgumentsAsString(bool withExecutable = true);
|
||||
//! @}
|
||||
|
||||
//! Simulate a crash
|
||||
//! \private only for testing purposes
|
||||
@@ -382,16 +381,18 @@ namespace BlackCore
|
||||
//! Get the facade
|
||||
CCoreFacade *getCoreFacade() { return m_coreFacade.data(); }
|
||||
|
||||
//! Local or DBus application? @{
|
||||
//! Local or DBus application?
|
||||
//! @{
|
||||
bool isLocalContext() const;
|
||||
bool isDBusContext() const;
|
||||
//! @}
|
||||
|
||||
//! Get the facade
|
||||
//! @{
|
||||
const CCoreFacade *getCoreFacade() const { return m_coreFacade.data(); }
|
||||
//! @}
|
||||
|
||||
//! \name Direct access to contexts if a CCoreFacade has been initialized
|
||||
//! Direct access to contexts if a CCoreFacade has been initialized
|
||||
//! @{
|
||||
const Context::IContextNetwork *getIContextNetwork() const;
|
||||
const Context::IContextAudio *getIContextAudio() const;
|
||||
|
||||
@@ -46,8 +46,8 @@ namespace BlackCore
|
||||
friend class IContextApplication;
|
||||
|
||||
public slots:
|
||||
//! @{
|
||||
//! \publicsection
|
||||
//! @{
|
||||
virtual void changeSettings(const BlackMisc::CValueCachePacket &settings, const BlackMisc::CIdentifier &origin) override;
|
||||
virtual BlackMisc::CValueCachePacket getAllSettings() const override;
|
||||
virtual QStringList getUnsavedSettingsKeys() const override;
|
||||
|
||||
@@ -49,8 +49,8 @@ namespace BlackCore
|
||||
virtual ~CContextApplicationProxy() override {}
|
||||
|
||||
public slots:
|
||||
//! @{
|
||||
//! \publicsection
|
||||
//! @{
|
||||
virtual void changeSettings(const BlackMisc::CValueCachePacket &settings, const BlackMisc::CIdentifier &origin) override;
|
||||
virtual BlackMisc::CValueCachePacket getAllSettings() const override;
|
||||
virtual QStringList getUnsavedSettingsKeys() const override;
|
||||
|
||||
@@ -144,13 +144,15 @@ namespace BlackCore
|
||||
//! Graceful shutdown
|
||||
void gracefulShutdown();
|
||||
|
||||
//! Enable/disable @{
|
||||
//! Enable/disable
|
||||
//! @{
|
||||
void enableVoiceClient() { this->initVoiceClient(); }
|
||||
void enableVoiceClientAndStart();
|
||||
void disableVoiceClient() { this->terminateVoiceClient(); }
|
||||
//! @}
|
||||
|
||||
//! Receive/transmit @{
|
||||
//! Receive/transmit
|
||||
//! @{
|
||||
void setRxTx(bool rx1, bool tx1, bool rx2, bool tx2);
|
||||
void getRxTx(bool &rx1, bool &tx1, bool &rx2, bool &tx2) const;
|
||||
//! @}
|
||||
@@ -291,7 +293,8 @@ namespace BlackCore
|
||||
* Workaround those must be invisible for DBus
|
||||
*
|
||||
|
||||
//! VU levels @{
|
||||
//! VU levels
|
||||
//! @{
|
||||
void inputVolumePeakVU (double value);
|
||||
void outputVolumePeakVU(double value);
|
||||
//! @}
|
||||
|
||||
@@ -240,7 +240,8 @@ namespace BlackCore
|
||||
//! \ingroup crosscontextfunction
|
||||
void xCtxChangedSimulatorStatus(int status);
|
||||
|
||||
//! Actions @{
|
||||
//! Actions
|
||||
//! @{
|
||||
void actionToggleTransponder(bool keydown);
|
||||
void actionIdent(bool keydown);
|
||||
//! @}
|
||||
|
||||
@@ -37,7 +37,8 @@ namespace BlackCore
|
||||
//! Construct from tokens
|
||||
static AtcDataUpdate fromTokens(const QStringList &tokens);
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
int m_frequencykHz = 0.0;
|
||||
BlackMisc::Network::CFacilityType m_facility;
|
||||
int m_visibleRange = 0.0;
|
||||
|
||||
@@ -37,7 +37,8 @@ namespace BlackCore
|
||||
//! PDU identifier
|
||||
static QString pdu() { return "$ID"; }
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
std::uint16_t m_clientId = 0;
|
||||
QString m_clientName;
|
||||
int m_clientVersionMajor = BlackConfig::CBuildConfig::getVersion().majorVersion();
|
||||
|
||||
@@ -39,7 +39,8 @@ namespace BlackCore
|
||||
//! PDU identifier
|
||||
static QString pdu() { return "$CQ"; }
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
ClientQueryType m_queryType = ClientQueryType::Unknown;
|
||||
QStringList m_queryData;
|
||||
//! @}
|
||||
|
||||
@@ -37,7 +37,8 @@ namespace BlackCore
|
||||
//! PDU identifier
|
||||
static QString pdu() { return "$CR"; }
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
ClientQueryType m_queryType {};
|
||||
QStringList m_responseData;
|
||||
//! @}
|
||||
|
||||
@@ -174,7 +174,8 @@ namespace BlackCore
|
||||
AircraftConfig = (1 << 8)
|
||||
};
|
||||
|
||||
//! Operators @{
|
||||
//! Operators
|
||||
//! @{
|
||||
inline Capabilities operator | (Capabilities lhs, Capabilities rhs)
|
||||
{
|
||||
return static_cast<Capabilities>(static_cast<int>(lhs) | static_cast<int>(rhs));
|
||||
|
||||
@@ -37,7 +37,8 @@ namespace BlackCore
|
||||
//! PDU identifier
|
||||
static QString pdu() { return "$FP"; }
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
FlightType m_flightType {};
|
||||
QString m_aircraftIcaoType;
|
||||
int m_trueCruisingSpeed = 0;
|
||||
@@ -53,7 +54,7 @@ namespace BlackCore
|
||||
QString m_altAirport;
|
||||
QString m_remarks;
|
||||
QString m_route;
|
||||
//! @
|
||||
//! @}
|
||||
|
||||
protected:
|
||||
FlightPlan();
|
||||
|
||||
@@ -47,7 +47,8 @@
|
||||
|
||||
#include <atomic>
|
||||
|
||||
//! Protocol version @{
|
||||
//! Protocol version
|
||||
//! @{
|
||||
#define PROTOCOL_REVISION_CLASSIC 9
|
||||
#define PROTOCOL_REVISION_VATSIM_ATC 10
|
||||
#define PROTOCOL_REVISION_VATSIM_AUTH 100
|
||||
@@ -139,12 +140,14 @@ namespace BlackCore
|
||||
//! \threadsafe
|
||||
PilotRating getPilotRating() const { QReadLocker l(&m_lockUserClientBuffered); return m_pilotRating; }
|
||||
|
||||
//! Connenct/disconnect @{
|
||||
//! Connenct/disconnect
|
||||
//! @{
|
||||
void connectToServer();
|
||||
void disconnectFromServer();
|
||||
//! @}
|
||||
|
||||
//! Interim positions @{
|
||||
//! Interim positions
|
||||
//! @{
|
||||
void addInterimPositionReceiver(const BlackMisc::Aviation::CCallsign &receiver) { m_interimPositionReceivers.push_back(receiver); }
|
||||
void removeInterimPositionReceiver(const BlackMisc::Aviation::CCallsign &receiver) { m_interimPositionReceivers.remove(receiver); }
|
||||
//! @}
|
||||
@@ -169,19 +172,22 @@ namespace BlackCore
|
||||
void sendPlaneInfoRequestFsinn(const BlackMisc::Aviation::CCallsign &callsign);
|
||||
//! @}
|
||||
|
||||
//! Interim pos.receivers @{
|
||||
//! Interim pos.receivers
|
||||
//! @{
|
||||
BlackMisc::Aviation::CCallsignSet getInterimPositionReceivers() const;
|
||||
void setInterimPositionReceivers(const BlackMisc::Aviation::CCallsignSet &interimPositionReceivers);
|
||||
//! @}
|
||||
|
||||
//! Connection status @{
|
||||
//! Connection status
|
||||
//! @{
|
||||
BlackMisc::Network::CConnectionStatus getConnectionStatus() const { QReadLocker l(&m_lockConnectionStatus); return m_connectionStatus; }
|
||||
bool isConnected() const { return this->getConnectionStatus().isConnected(); }
|
||||
bool isDisconnected() const { return this->getConnectionStatus().isDisconnected(); }
|
||||
bool isPendingConnection() const;
|
||||
//! @}
|
||||
|
||||
//! Statistics enable functions @{
|
||||
//! Statistics enable functions
|
||||
//! @{
|
||||
bool setStatisticsEnable(bool enabled) { m_statistics = enabled; return enabled; }
|
||||
bool isStatisticsEnabled() const { return m_statistics; }
|
||||
//! @}
|
||||
@@ -199,7 +205,8 @@ namespace BlackCore
|
||||
void gracefulShutdown();
|
||||
|
||||
signals:
|
||||
//! Client responses received @{
|
||||
//! Client responses received
|
||||
//! @{
|
||||
void atcDataUpdateReceived(const BlackMisc::Aviation::CCallsign &callsign, const BlackMisc::PhysicalQuantities::CFrequency &freq,
|
||||
const BlackMisc::Geo::CCoordinateGeodetic &pos, const BlackMisc::PhysicalQuantities::CLength &range);
|
||||
void deleteAtcReceived(const QString &cid);
|
||||
@@ -269,7 +276,8 @@ namespace BlackCore
|
||||
void sendQueuedMessage();
|
||||
//! @}
|
||||
|
||||
//! Increase the statistics value for given identifier @{
|
||||
//! Increase the statistics value for given identifier
|
||||
//! @{
|
||||
int increaseStatisticsValue(const QString &identifier, const QString &appendix = {});
|
||||
int increaseStatisticsValue(const QString &identifier, int value);
|
||||
//! @}
|
||||
@@ -295,7 +303,8 @@ namespace BlackCore
|
||||
this->sendMessageString(messageToFSDString(message));
|
||||
}
|
||||
|
||||
//! Unit test/debug functions @{
|
||||
//! Unit test/debug functions
|
||||
//! @{
|
||||
void sendFsdMessage(const QString &message);
|
||||
void setUnitTestMode(bool on) { m_unitTestMode = on; }
|
||||
//! @}
|
||||
@@ -346,7 +355,8 @@ namespace BlackCore
|
||||
// Type to string
|
||||
const QString &messageTypeToString(MessageType mt) const;
|
||||
|
||||
//! Handle response tokens @{
|
||||
//! Handle response tokens
|
||||
//! @{
|
||||
void handleAtcDataUpdate(const QStringList &tokens);
|
||||
void handleAuthChallenge(const QStringList &tokens);
|
||||
void handleAuthResponse(const QStringList &tokens);
|
||||
@@ -418,7 +428,8 @@ namespace BlackCore
|
||||
//! Emit raw FSD message (mostly for debugging)
|
||||
void emitRawFsdMessage(const QString &fsdMessage, bool isSent);
|
||||
|
||||
//! Additional offset time @{
|
||||
//! Additional offset time
|
||||
//! @{
|
||||
qint64 getAdditionalOffsetTime() const;
|
||||
void setAdditionalOffsetTime(qint64 addOffset);
|
||||
//! @}
|
||||
@@ -426,7 +437,8 @@ namespace BlackCore
|
||||
//! Save the statistics
|
||||
bool saveNetworkStatistics(const QString &server);
|
||||
|
||||
//! Timers @{
|
||||
//! Timers
|
||||
//! @{
|
||||
void startPositionTimers();
|
||||
void stopPositionTimers();
|
||||
//! @}
|
||||
|
||||
@@ -33,7 +33,8 @@ namespace BlackCore
|
||||
//! PDU identifier
|
||||
static QString pdu() { return "$DI"; }
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
QString m_serverVersion;
|
||||
QString m_initialChallenge;
|
||||
//! @}
|
||||
|
||||
@@ -35,7 +35,8 @@ namespace BlackCore
|
||||
//! PDU identifier
|
||||
static QString pdu() { return "#SB"; }
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
double m_latitude = 0.0;
|
||||
double m_longitude = 0.0;
|
||||
int m_altitudeTrue = 0.0;
|
||||
|
||||
@@ -36,7 +36,8 @@ namespace BlackCore
|
||||
//! PDU identifier
|
||||
static QString pdu() { return "@"; }
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
BlackMisc::Aviation::CTransponder::TransponderMode m_transponderMode = BlackMisc::Aviation::CTransponder::StateStandby;
|
||||
int m_transponderCode = 0;
|
||||
PilotRating m_rating = PilotRating::Unknown;
|
||||
|
||||
@@ -38,7 +38,8 @@ namespace BlackCore
|
||||
//! PDU identifier
|
||||
static QString pdu() { return QStringLiteral("#SB"); }
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
QString m_airlineIcao;
|
||||
QString m_aircraftIcao;
|
||||
QString m_aircraftIcaoCombinedType;
|
||||
|
||||
@@ -34,7 +34,8 @@ namespace BlackCore
|
||||
//! PDU identifier
|
||||
static QString pdu() { return "#SB"; }
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
QString m_aircraft;
|
||||
QString m_airline;
|
||||
QString m_livery;
|
||||
|
||||
@@ -38,7 +38,8 @@ namespace BlackCore
|
||||
//! PDU identifier
|
||||
static QString pdu() { return "#SB"; }
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
QString m_airlineIcao;
|
||||
QString m_aircraftIcao;
|
||||
QString m_aircraftIcaoCombinedType;
|
||||
|
||||
@@ -38,17 +38,19 @@ namespace BlackCore
|
||||
//! PDU identifier
|
||||
static QString pdu() { return "-MD"; }
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
ClientQueryType m_queryType = ClientQueryType::Unknown;
|
||||
QStringList m_queryData;
|
||||
//! @}
|
||||
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
QString m_partsval1;
|
||||
QString m_partsval2;
|
||||
QString m_partsval3;
|
||||
//! @
|
||||
//! @}
|
||||
|
||||
private:
|
||||
RevBClientParts();
|
||||
|
||||
@@ -21,7 +21,8 @@ namespace BlackCore
|
||||
{
|
||||
namespace Fsd
|
||||
{
|
||||
//! private @{
|
||||
//! private
|
||||
//! @{
|
||||
|
||||
namespace Private
|
||||
{
|
||||
|
||||
@@ -37,12 +37,14 @@ namespace BlackCore
|
||||
//! PDU identifier
|
||||
static QString pdu() { return "$ER"; }
|
||||
|
||||
//! Getter @{
|
||||
//! Getter
|
||||
//! @{
|
||||
const QString &getCausingParameter() const { static const QString n("no details"); return m_causingParameter.isEmpty() ? n : m_causingParameter; }
|
||||
const QString &getDescription() const { static const QString n("no description"); return m_description.isEmpty() ? n : m_description; }
|
||||
//! @}
|
||||
|
||||
//! Properties @{
|
||||
//! Properties
|
||||
//! @{
|
||||
ServerErrorCode m_errorNumber {};
|
||||
QString m_causingParameter;
|
||||
QString m_description;
|
||||
|
||||
@@ -420,7 +420,7 @@ namespace BlackCore
|
||||
BlackMisc::Network::IClientProvider *clientProvider,
|
||||
QObject *parent = nullptr);
|
||||
|
||||
//! \name When swift DB data are read
|
||||
//! When swift DB data are read
|
||||
//! @{
|
||||
virtual void onSwiftDbAllDataRead();
|
||||
virtual void onSwiftDbModelMatchingEntitiesRead();
|
||||
@@ -442,7 +442,7 @@ namespace BlackCore
|
||||
//! Max.airports in range
|
||||
int maxAirportsInRange() const;
|
||||
|
||||
//! \name Connected with remote aircraft provider signals
|
||||
//! Connected with remote aircraft provider signals
|
||||
//! @{
|
||||
//! Recalculate the rendered aircraft, this happens when restrictions are applied (max. aircraft, range)
|
||||
virtual void onRecalculatedRenderedAircraft(const BlackMisc::Simulation::CAirspaceAircraftSnapshot &snapshot);
|
||||
@@ -735,7 +735,8 @@ namespace BlackCore
|
||||
//! ISimulatorVirtual destructor
|
||||
virtual ~ISimulatorFactory() {}
|
||||
|
||||
//! Not copyable @{
|
||||
//! Not copyable
|
||||
//! @{
|
||||
ISimulatorFactory(const ISimulatorFactory &) = delete;
|
||||
ISimulatorFactory &operator=(const ISimulatorFactory &) = delete;
|
||||
//! @}
|
||||
|
||||
@@ -532,7 +532,9 @@ namespace BlackCore
|
||||
// 1) simple signature
|
||||
// 2) fired directly after read, no need to wait for other entities
|
||||
|
||||
//! \name Simplified read signals @{
|
||||
//! \name Simplified read signals
|
||||
//! @{
|
||||
|
||||
//! All swift DB data have been read
|
||||
void swiftDbAllDataRead();
|
||||
|
||||
|
||||
@@ -30,7 +30,8 @@ namespace BlackCore
|
||||
//! Ctor
|
||||
Q_INVOKABLE MSWebServices() {}
|
||||
|
||||
//! Functions calling the web services @{
|
||||
//! Functions calling the web services
|
||||
//! @{
|
||||
Q_INVOKABLE int countAircraftIcaoCodesForDesignator(const QString &designator) const;
|
||||
Q_INVOKABLE int countAirlineIcaoCodesForDesignator(const QString &designator) const;
|
||||
//! @}
|
||||
|
||||
Reference in New Issue
Block a user