swift
Public Types | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
swift::core::afv::clients::CAfvClient Class Referencefinal

AFV client. More...

Inheritance diagram for swift::core::afv::clients::CAfvClient:
[legend]

Public Types

enum  ConnectionStatus { Disconnected , Connected }
 Connection status.
 
- Public Types inherited from QObject
enum  TimerId
 

Signals

void receivingCallsignsChanged (const swift::core::afv::audio::TransceiverReceivingCallsignsChangedArgs &args)
 Receiving callsigns have been changed. More...
 
void receivedCallsignsChanged (const swift::misc::aviation::CCallsignSet &com1Callsigns, const swift::misc::aviation::CCallsignSet &com2Callsigns)
 Received callsigns have been changed. More...
 
void connectionStatusChanged (ConnectionStatus status)
 Connection status has been changed.
 
void afvConnectionFailure (const swift::misc::CStatusMessage &msg)
 Authentication has failed with AFV server.
 
void updatedFromOwnAircraftCockpit ()
 Client updated from own aicraft data.
 
void ptt (bool active, const swift::misc::CIdentifier &identifier)
 PTT status in this particular AFV client.
 
void startedAudio (const swift::misc::audio::CAudioDeviceInfo &inputDevice, const swift::misc::audio::CAudioDeviceInfo &outputDevice)
 Started audio with devices.
 
void stoppedAudio ()
 Audio has been stopped.
 
void changedOutputMute (bool muted)
 Output mute changed.
 
void inputVolumePeakVU (double value)
 VU levels.
 
void outputVolumePeakVU (double value)
 VU levels.
 
- Signals inherited from swift::misc::CWorkerBase
void aboutToStart ()
 Emitted when the task is about to start.
 
void finished ()
 Emitted when the task is finished. More...
 

Public Member Functions

 CAfvClient (const QString &apiServer, QObject *owner)
 Ctor.
 
 ~CAfvClient ()
 Dtor.
 
bool isConnected () const
 Is connected to network? More...
 
ConnectionStatus getConnectionStatus () const
 Connection status. More...
 
Q_INVOKABLE void connectTo (const QString &cid, const QString &password, const QString &callsign, const QString &client)
 Connect to network. More...
 
Q_INVOKABLE void setBypassEffects (bool value)
 Enable/disable VHF simulation, true means effects are NOT used.
 
bool isStarted () const
 Client started?
 
bool isComUnitIntegrated () const
 Is integrated with COM unit. More...
 
void setReceiveAudio (bool receive)
 Receive audio. More...
 
Q_INVOKABLE void updatePosition (double latitudeDeg, double longitudeDeg, double heightMeters)
 Update own aircraft position. More...
 
void updateFromOwnAircraft (const swift::misc::simulation::CSimulatedAircraft &aircraft, bool withSignals=true)
 Update from own aircraft. More...
 
Q_INVOKABLE void setPtt (bool active)
 Push to talk. More...
 
double getOutputGainRatio (swift::misc::aviation::CComSystem::ComUnit comUnit) const
 Gain ratio. More...
 
bool updateVoiceServerUrl (const QString &url)
 Update the voice server URL.
 
void gracefulShutdown ()
 Gracefully shut down AFV client.
 
 CAfvClient (const CAfvClient &)=delete
 Copy operations.
 
CAfvClientoperator= (const CAfvClient &)=delete
 Copy operations.
 
 CAfvClient (const CAfvClient &&)=delete
 }@ More...
 
CAfvClientoperator= (const CAfvClient &&)=delete
 Copy operations.
 
QString getCallsign () const
 }@ More...
 
void setCallsign (const QString &getCallsign)
 Copy operations.
 
void disconnectFrom (bool stop)
 Disconnect from network. More...
 
Q_INVOKABLE void disconnectFrom ()
 Disconnect from network. More...
 
void disconnectFromAndStop ()
 Disconnect from network. More...
 
Q_INVOKABLE QStringList availableInputDevices () const
 Audio devices.
 
Q_INVOKABLE QStringList availableOutputDevices () const
 Audio devices.
 
bool isOutputMuted () const
 Muted (output) More...
 
void setOutputMuted (bool mute)
 Muted (output) More...
 
void startAudio ()
 Start/stop client.
 
void startAudio (const swift::misc::audio::CAudioDeviceInfo &inputDevice, const swift::misc::audio::CAudioDeviceInfo &outputDevice)
 Start/stop client.
 
Q_INVOKABLE void startAudio (const QString &inputDeviceName, const QString &outputDeviceName)
 Start/stop client.
 
void stopAudio ()
 Start/stop client.
 
void restartAudio ()
 Start/stop client.
 
Q_INVOKABLE void enableTransceiver (quint16 id, bool enable)
 Enable COM unit/transceiver. More...
 
void enableComUnit (swift::misc::aviation::CComSystem::ComUnit comUnit, bool enable)
 Enable COM unit/transceiver. More...
 
bool isEnabledTransceiver (quint16 id) const
 Enable COM unit/transceiver. More...
 
bool isEnabledComUnit (swift::misc::aviation::CComSystem::ComUnit comUnit) const
 Enable COM unit/transceiver. More...
 
void setTransmittingTransceiver (quint16 transceiverID)
 Set transmitting transceivers. More...
 
void setTransmittingComUnit (swift::misc::aviation::CComSystem::ComUnit comUnit)
 Set transmitting transceivers. More...
 
void setTransmittingTransceivers (const QVector< TxTransceiverDto > &transceivers)
 Set transmitting transceivers. More...
 
bool isTransmittingTransceiver (quint16 id) const
 Transmitting transceiver/COM unit. More...
 
bool isTransmittingComUnit (swift::misc::aviation::CComSystem::ComUnit comUnit) const
 Transmitting transceiver/COM unit. More...
 
void setRxTx (bool rx1, bool tx1, bool rx2, bool tx2)
 Simplified enable/disable. More...
 
void getRxTx (bool &rx1, bool &tx1, bool &rx2, bool &tx2) const
 Simplified enable/disable. More...
 
QVector< TransceiverDtogetTransceivers () const
 Get transceivers. More...
 
QVector< TxTransceiverDtogetTransmittingTransceivers () const
 Get transceivers. More...
 
QSet< quint16 > getEnabledTransceivers () const
 Get transceivers. More...
 
Q_INVOKABLE void updateComFrequency (quint16 id, quint32 frequencyHz)
 Update frequency. More...
 
void updateComFrequency (swift::misc::aviation::CComSystem::ComUnit comUnit, const swift::misc::physical_quantities::CFrequency &comFrequency)
 Update frequency. More...
 
void updateComFrequency (swift::misc::aviation::CComSystem::ComUnit comUnit, const swift::misc::aviation::CComSystem &comSystem)
 Update frequency. More...
 
Q_INVOKABLE void setLoopBack (bool on)
 Loopback. More...
 
Q_INVOKABLE bool isLoopback () const
 Loopback. More...
 
double getInputVolumeDb () const
 Input volume in dB, [MinDbIn, MaxDbIn]dB. More...
 
Q_INVOKABLE bool setInputVolumeDb (double valueDb)
 Input volume in dB, [MinDbIn, MaxDbIn]dB. More...
 
double getComOutputVolumeDb (swift::misc::aviation::CComSystem::ComUnit comUnit) const
 Output volume for each COM in dB, [MinDbOut, MaxDbOut]dB. More...
 
Q_INVOKABLE bool setComOutputVolumeDb (swift::misc::aviation::CComSystem::ComUnit comUnit, double valueDb)
 Output volume for each COM in dB, [MinDbOut, MaxDbOut]dB. More...
 
int getNormalizedInputVolume () const
 Normalized volumes 0..100. More...
 
int getNormalizedComOutputVolume (swift::misc::aviation::CComSystem::ComUnit comUnit) const
 Normalized volumes 0..100. More...
 
int getNormalizedMasterOutputVolume () const
 Normalized volumes 0..100. More...
 
bool setNormalizedInputVolume (int volume)
 Normalized volumes 0..100. More...
 
bool setNormalizedComOutputVolume (swift::misc::aviation::CComSystem::ComUnit comUnit, int volume)
 Normalized volumes 0..100. More...
 
bool setNormalizedMasterOutputVolume (int volume)
 Normalized volumes 0..100. More...
 
double getInputVolumePeakVU () const
 VU values, 0..1. More...
 
double getOutputVolumePeakVU () const
 VU values, 0..1. More...
 
const swift::misc::audio::CAudioDeviceInfogetInputDevice () const
 Recently used device. More...
 
const swift::misc::audio::CAudioDeviceInfogetOutputDevice () const
 Recently used device. More...
 
bool usesSameDevices (const swift::misc::audio::CAudioDeviceInfo &inputDevice, const swift::misc::audio::CAudioDeviceInfo &outputDevice)
 Recently used device. More...
 
QString getReceivingCallsignsStringCom1 () const
 Callsigns currently received. More...
 
QString getReceivingCallsignsStringCom2 () const
 Callsigns currently received. More...
 
swift::misc::aviation::CCallsignSet getReceivingCallsignsCom1 () const
 Callsigns currently received. More...
 
swift::misc::aviation::CCallsignSet getReceivingCallsignsCom2 () const
 Callsigns currently received. More...
 
QStringList getReceivingCallsignsStringCom1Com2 () const
 Callsigns currently received. More...
 
- Public Member Functions inherited from swift::misc::CContinuousWorker
 CContinuousWorker (QObject *owner, const QString &name)
 Constructor. More...
 
void start (QThread::Priority priority=QThread::InheritPriority)
 Starts a thread and moves the worker into it.
 
void quit () noexcept final
 Stops the thread the next time around its event loop. The thread and the worker will then be deleted. More...
 
void quitAndWait () noexcept final
 Calls quit() and blocks until the thread is finished. More...
 
bool isEnabled () const
 Enabled (running)? More...
 
const QStringgetName ()
 Name of the worker.
 
const QObjectowner () const
 Owner of the worker.
 
- Public Member Functions inherited from swift::misc::CWorkerBase
 ~CWorkerBase ()
 Destructor.
 
 CWorkerBase (const CWorkerBase &)=delete
 Copy constructor.
 
CWorkerBaseoperator= (const CWorkerBase &)=delete
 Copy assignment.
 
 CWorkerBase (CWorkerBase &&)=delete
 Move constructor.
 
CWorkerBaseoperator= (CWorkerBase &&)=delete
 Move assignment.
 
template<typename T , typename F >
void then (T *context, F functor)
 Connects to a functor or method which will be called when the task is finished. More...
 
template<typename F >
void then (F functor)
 Connects to a functor which will be called when the task is finished. More...
 
bool isFinished () const
 Returns true if the task has finished. More...
 
template<typename F >
void doIfFinished (F functor) const
 Executes some code (in the caller's thread) if the task has finished. More...
 
template<typename F >
void doIfNotFinished (F functor) const
 Executes some code (in the caller's thread) if the task has not finished. More...
 
template<typename F1 , typename F2 >
void doIfFinishedElse (F1 ifFunctor, F2 elseFunctor) const
 Executes some code (in the caller's thread) if the task has finished and some different code if it has not finished. More...
 
void waitForFinished () noexcept
 Blocks until the task is finished. More...
 
void abandon () noexcept
 Notify the task that its result is no longer needed, so it can finish early. More...
 
void abandonAndWait () noexcept
 Convenience to call abandon() followed by waitForFinished().
 
- Public Member Functions inherited from QObject
QBindable< QStringbindableObjectName ()
 
 QObject (QObject *parent)
 
 QT_NO_CONTEXTLESS_CONNECT QT_NO_CONTEXTLESS_CONNECT
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUMS (...)
 
 Q_ENUM_NS (...)
 
 Q_FLAG (...)
 
 Q_FLAGS (...)
 
 Q_FLAG_NS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (QObject *object)
 
qobject_cast (const QObject *object)
 
bool blockSignals (bool block)
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
bool moveToThread (QThread *targetThread)
 
bool setProperty (const char *name, QVariant &&value)
 
bool setProperty (const char *name, const QVariant &value)
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::nanoseconds interval, Qt::TimerType timerType)
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
void installEventFilter (QObject *filterObj)
 
void killTimer (Qt::TimerId id)
 
void killTimer (int id)
 
void objectNameChanged (const QString &objectName)
 
void removeEventFilter (QObject *obj)
 
void setObjectName (QAnyStringView name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
QList< QByteArraydynamicPropertyNames () const const
 
QList< T > findChildren (QAnyStringView name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
QObjectparent () const const
 
QString objectName () const const
 
QThreadthread () const const
 
QVariant property (const char *name) const const
 
findChild (QAnyStringView name, Qt::FindChildOptions options) const const
 
findChild (Qt::FindChildOptions options) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool inherits (const char *className) const const
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
bool signalsBlocked () const const
 
virtual const QMetaObjectmetaObject () const const
 
const QObjectListchildren () const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
- Public Member Functions inherited from swift::misc::CIdentifiable
const CIdentifieridentifier () const
 Get identifier.
 
void setIdentifier (const CIdentifier &identifier)
 Set identifier, allows to set an external identifier.
 
bool isMyIdentifier (const CIdentifier &otherIdentifier) const
 My identifier?
 

Static Public Member Functions

static const QStringListgetLogCategories ()
 Categories.
 
- Static Public Member Functions inherited from swift::misc::CWorkerBase
static const QStringListgetLogCategories ()
 Log categories.
 
static const QSet< CWorkerBase * > & allWorkers ()
 All workers currently existing.
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 

Protected Member Functions

void initialize ()
 Called when the thread is started. More...
 
void cleanup ()
 Called when the thread is finished. More...
 
- Protected Member Functions inherited from swift::misc::CContinuousWorker
virtual void beforeQuit () noexcept
 Called before quit is called. More...
 
virtual unsigned long waitTimeoutMs () const
 Wait time for quitAndWait, 0 means not waiting.
 
- Protected Member Functions inherited from swift::misc::CWorkerBase
 CWorkerBase ()
 Constructor.
 
bool isAbandoned () const
 For the task to check whether it can finish early. More...
 
bool hasStarted () const
 True if the worker has started.
 
void setStarted ()
 Mark the task as started.
 
void setFinished ()
 Mark the task as finished.
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
virtual void timerEvent (QTimerEvent *event)
 
QObjectsender () const const
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
int senderSignalIndex () const const
 
- Protected Member Functions inherited from swift::misc::CIdentifiable
 CIdentifiable (const QString &objectName)
 Use literal based object name.
 
 CIdentifiable (QObject *nameProvider)
 Connect with QObject providing the name.
 
 CIdentifiable ()
 Construct without a name.
 
 ~CIdentifiable ()
 Destructor.
 
 CIdentifiable (const CIdentifiable &)=default
 Copy constructor.
 
CIdentifiableoperator= (const CIdentifiable &)=default
 Copy assignment operator.
 

Properties

double inputVolumePeakVU
 AFV client properties.
 
double outputVolumePeakVU
 AFV client properties.
 
swift::core::afv::clients::CAfvClient::ConnectionStatus connectionStatus
 AFV client properties.
 
QString receivingCallsignsCom1
 AFV client properties.
 
QString receivingCallsignsCom2
 AFV client properties.
 
- Properties inherited from QObject
 objectName
 

Additional Inherited Members

- Public Attributes inherited from QObject
typedef QObjectList
 
 Invalid
 

Detailed Description

AFV client.

Definition at line 33 of file afvclient.h.

Constructor & Destructor Documentation

◆ CAfvClient()

swift::core::afv::clients::CAfvClient::CAfvClient ( const CAfvClient &&  )
delete

}@

Move operations

Member Function Documentation

◆ cleanup()

void swift::core::afv::clients::CAfvClient::cleanup ( )
protectedvirtual

Called when the thread is finished.

Reimplemented from swift::misc::CContinuousWorker.

Definition at line 1011 of file afvclient.cpp.

◆ connectTo()

void swift::core::afv::clients::CAfvClient::connectTo ( const QString cid,
const QString password,
const QString callsign,
const QString client 
)

Connect to network.

Remarks
This function is thread safe.
runs in thread of CAfvClient object and is ASYNC when called from another thread

Definition at line 136 of file afvclient.cpp.

◆ disconnectFrom() [1/2]

Q_INVOKABLE void swift::core::afv::clients::CAfvClient::disconnectFrom ( )
inline

Disconnect from network.

Remarks
This function is thread safe.
runs in thread of CAfvClient object and is ASYNC when called from another thread

Definition at line 103 of file afvclient.h.

◆ disconnectFrom() [2/2]

void swift::core::afv::clients::CAfvClient::disconnectFrom ( bool  stop)

Disconnect from network.

Remarks
This function is thread safe.
runs in thread of CAfvClient object and is ASYNC when called from another thread

Definition at line 205 of file afvclient.cpp.

◆ disconnectFromAndStop()

void swift::core::afv::clients::CAfvClient::disconnectFromAndStop ( )
inline

Disconnect from network.

Remarks
This function is thread safe.
runs in thread of CAfvClient object and is ASYNC when called from another thread

Definition at line 104 of file afvclient.h.

◆ enableComUnit()

void swift::core::afv::clients::CAfvClient::enableComUnit ( swift::misc::aviation::CComSystem::ComUnit  comUnit,
bool  enable 
)

Enable COM unit/transceiver.

Remarks
This function is thread safe.

Definition at line 456 of file afvclient.cpp.

◆ enableTransceiver()

void swift::core::afv::clients::CAfvClient::enableTransceiver ( quint16  id,
bool  enable 
)

Enable COM unit/transceiver.

Remarks
This function is thread safe.

Definition at line 445 of file afvclient.cpp.

◆ getCallsign()

QString swift::core::afv::clients::CAfvClient::getCallsign ( ) const

}@

Corresponding callsign

Remarks
This function is thread safe.

Definition at line 59 of file afvclient.cpp.

◆ getComOutputVolumeDb()

double swift::core::afv::clients::CAfvClient::getComOutputVolumeDb ( swift::misc::aviation::CComSystem::ComUnit  comUnit) const

Output volume for each COM in dB, [MinDbOut, MaxDbOut]dB.

Remarks
This function is thread safe.

Definition at line 741 of file afvclient.cpp.

◆ getConnectionStatus()

CAfvClient::ConnectionStatus swift::core::afv::clients::CAfvClient::getConnectionStatus ( ) const

Connection status.

Remarks
This function is thread safe.

Definition at line 1533 of file afvclient.cpp.

◆ getEnabledTransceivers()

QSet< quint16 > swift::core::afv::clients::CAfvClient::getEnabledTransceivers ( ) const

Get transceivers.

Remarks
This function is thread safe.

Definition at line 655 of file afvclient.cpp.

◆ getInputDevice()

const CAudioDeviceInfo & swift::core::afv::clients::CAfvClient::getInputDevice ( ) const

Recently used device.

Remarks
This function is thread safe.

Definition at line 1506 of file afvclient.cpp.

◆ getInputVolumeDb()

double swift::core::afv::clients::CAfvClient::getInputVolumeDb ( ) const

Input volume in dB, [MinDbIn, MaxDbIn]dB.

Remarks
This function is thread safe.

Definition at line 705 of file afvclient.cpp.

◆ getInputVolumePeakVU()

double swift::core::afv::clients::CAfvClient::getInputVolumePeakVU ( ) const

VU values, 0..1.

Remarks
This function is thread safe.

Definition at line 850 of file afvclient.cpp.

◆ getNormalizedComOutputVolume()

int swift::core::afv::clients::CAfvClient::getNormalizedComOutputVolume ( swift::misc::aviation::CComSystem::ComUnit  comUnit) const

Normalized volumes 0..100.

Remarks
This function is thread safe.

Definition at line 773 of file afvclient.cpp.

◆ getNormalizedInputVolume()

int swift::core::afv::clients::CAfvClient::getNormalizedInputVolume ( ) const

Normalized volumes 0..100.

Remarks
This function is thread safe.

Definition at line 759 of file afvclient.cpp.

◆ getNormalizedMasterOutputVolume()

int swift::core::afv::clients::CAfvClient::getNormalizedMasterOutputVolume ( ) const

Normalized volumes 0..100.

Remarks
This function is thread safe.

Definition at line 767 of file afvclient.cpp.

◆ getOutputDevice()

const CAudioDeviceInfo & swift::core::afv::clients::CAfvClient::getOutputDevice ( ) const

Recently used device.

Remarks
This function is thread safe.

Definition at line 1514 of file afvclient.cpp.

◆ getOutputGainRatio()

double swift::core::afv::clients::CAfvClient::getOutputGainRatio ( swift::misc::aviation::CComSystem::ComUnit  comUnit) const

Gain ratio.

Remarks
This function is thread safe.

Definition at line 750 of file afvclient.cpp.

◆ getOutputVolumePeakVU()

double swift::core::afv::clients::CAfvClient::getOutputVolumePeakVU ( ) const

VU values, 0..1.

Remarks
This function is thread safe.

Definition at line 856 of file afvclient.cpp.

◆ getReceivingCallsignsCom1()

CCallsignSet swift::core::afv::clients::CAfvClient::getReceivingCallsignsCom1 ( ) const

Callsigns currently received.

Remarks
This function is thread safe.

Definition at line 967 of file afvclient.cpp.

◆ getReceivingCallsignsCom2()

CCallsignSet swift::core::afv::clients::CAfvClient::getReceivingCallsignsCom2 ( ) const

Callsigns currently received.

Remarks
This function is thread safe.

Definition at line 974 of file afvclient.cpp.

◆ getReceivingCallsignsStringCom1()

QString swift::core::afv::clients::CAfvClient::getReceivingCallsignsStringCom1 ( ) const

Callsigns currently received.

Remarks
This function is thread safe.

Definition at line 953 of file afvclient.cpp.

◆ getReceivingCallsignsStringCom1Com2()

QStringList swift::core::afv::clients::CAfvClient::getReceivingCallsignsStringCom1Com2 ( ) const

Callsigns currently received.

Remarks
This function is thread safe.

Definition at line 981 of file afvclient.cpp.

◆ getReceivingCallsignsStringCom2()

QString swift::core::afv::clients::CAfvClient::getReceivingCallsignsStringCom2 ( ) const

Callsigns currently received.

Remarks
This function is thread safe.

Definition at line 960 of file afvclient.cpp.

◆ getRxTx()

void swift::core::afv::clients::CAfvClient::getRxTx ( bool &  rx1,
bool &  tx1,
bool &  rx2,
bool &  tx2 
) const

Simplified enable/disable.

Remarks
This function is thread safe.

Definition at line 630 of file afvclient.cpp.

◆ getTransceivers()

QVector< TransceiverDto > swift::core::afv::clients::CAfvClient::getTransceivers ( ) const

Get transceivers.

Remarks
This function is thread safe.

Definition at line 649 of file afvclient.cpp.

◆ getTransmittingTransceivers()

QVector< TxTransceiverDto > swift::core::afv::clients::CAfvClient::getTransmittingTransceivers ( ) const

Get transceivers.

Remarks
This function is thread safe.

Definition at line 661 of file afvclient.cpp.

◆ initialize()

void swift::core::afv::clients::CAfvClient::initialize ( )
protectedvirtual

Called when the thread is started.

Reimplemented from swift::misc::CContinuousWorker.

Definition at line 1006 of file afvclient.cpp.

◆ isComUnitIntegrated()

bool swift::core::afv::clients::CAfvClient::isComUnitIntegrated ( ) const
inline

Is integrated with COM unit.

Remarks
This function is thread safe.

Definition at line 138 of file afvclient.h.

◆ isConnected()

bool swift::core::afv::clients::CAfvClient::isConnected ( ) const

Is connected to network?

Remarks
This function is thread safe.

Definition at line 71 of file afvclient.cpp.

◆ isEnabledComUnit()

bool swift::core::afv::clients::CAfvClient::isEnabledComUnit ( swift::misc::aviation::CComSystem::ComUnit  comUnit) const

Enable COM unit/transceiver.

Remarks
This function is thread safe.

Definition at line 472 of file afvclient.cpp.

◆ isEnabledTransceiver()

bool swift::core::afv::clients::CAfvClient::isEnabledTransceiver ( quint16  id) const

Enable COM unit/transceiver.

Remarks
This function is thread safe.

Definition at line 461 of file afvclient.cpp.

◆ isLoopback()

Q_INVOKABLE bool swift::core::afv::clients::CAfvClient::isLoopback ( ) const
inline

Loopback.

Remarks
This function is thread safe.

Definition at line 221 of file afvclient.h.

◆ isOutputMuted()

bool swift::core::afv::clients::CAfvClient::isOutputMuted ( ) const

Muted (output)

Remarks
This function is thread safe.

Definition at line 249 of file afvclient.cpp.

◆ isTransmittingComUnit()

bool swift::core::afv::clients::CAfvClient::isTransmittingComUnit ( swift::misc::aviation::CComSystem::ComUnit  comUnit) const

Transmitting transceiver/COM unit.

Remarks
This function is thread safe.

Definition at line 596 of file afvclient.cpp.

◆ isTransmittingTransceiver()

bool swift::core::afv::clients::CAfvClient::isTransmittingTransceiver ( quint16  id) const

Transmitting transceiver/COM unit.

Remarks
This function is thread safe.

Definition at line 589 of file afvclient.cpp.

◆ receivedCallsignsChanged

void swift::core::afv::clients::CAfvClient::receivedCallsignsChanged ( const swift::misc::aviation::CCallsignSet com1Callsigns,
const swift::misc::aviation::CCallsignSet com2Callsigns 
)
signal

Received callsigns have been changed.

Remarks
swift style per com units

◆ receivingCallsignsChanged

void swift::core::afv::clients::CAfvClient::receivingCallsignsChanged ( const swift::core::afv::audio::TransceiverReceivingCallsignsChangedArgs args)
signal

Receiving callsigns have been changed.

Remarks
callsigns I do receive

◆ setComOutputVolumeDb()

bool swift::core::afv::clients::CAfvClient::setComOutputVolumeDb ( swift::misc::aviation::CComSystem::ComUnit  comUnit,
double  valueDb 
)

Output volume for each COM in dB, [MinDbOut, MaxDbOut]dB.

Remarks
This function is thread safe.

Definition at line 1453 of file afvclient.cpp.

◆ setInputVolumeDb()

bool swift::core::afv::clients::CAfvClient::setInputVolumeDb ( double  valueDb)

Input volume in dB, [MinDbIn, MaxDbIn]dB.

Remarks
This function is thread safe.

Definition at line 711 of file afvclient.cpp.

◆ setLoopBack()

Q_INVOKABLE void swift::core::afv::clients::CAfvClient::setLoopBack ( bool  on)
inline

Loopback.

Remarks
This function is thread safe.

Definition at line 220 of file afvclient.h.

◆ setNormalizedComOutputVolume()

bool swift::core::afv::clients::CAfvClient::setNormalizedComOutputVolume ( swift::misc::aviation::CComSystem::ComUnit  comUnit,
int  volume 
)

Normalized volumes 0..100.

Remarks
This function is thread safe.

Definition at line 822 of file afvclient.cpp.

◆ setNormalizedInputVolume()

bool swift::core::afv::clients::CAfvClient::setNormalizedInputVolume ( int  volume)

Normalized volumes 0..100.

Remarks
This function is thread safe.

Definition at line 782 of file afvclient.cpp.

◆ setNormalizedMasterOutputVolume()

bool swift::core::afv::clients::CAfvClient::setNormalizedMasterOutputVolume ( int  volume)

Normalized volumes 0..100.

Remarks
This function is thread safe.

Definition at line 793 of file afvclient.cpp.

◆ setOutputMuted()

void swift::core::afv::clients::CAfvClient::setOutputMuted ( bool  mute)

Muted (output)

Remarks
This function is thread safe.

Definition at line 255 of file afvclient.cpp.

◆ setPtt()

void swift::core::afv::clients::CAfvClient::setPtt ( bool  active)

Push to talk.

Remarks
This function is thread safe.

TODO: RR 2019-10 as discussed https://discordapp.com/channels/539048679160676382/623947987822837779/633320595978846208 disabled for the moment as not needed if (!active) { AGC if (maxDbReadingInPTTInterval > -1) InputVolumeDb = InputVolumeDb - 1; if (maxDbReadingInPTTInterval < -4) InputVolumeDb = InputVolumeDb + 1; m_maxDbReadingInPTTInterval = -100; }

Definition at line 667 of file afvclient.cpp.

◆ setReceiveAudio()

void swift::core::afv::clients::CAfvClient::setReceiveAudio ( bool  receive)

Receive audio.

Remarks
This function is thread safe.

Definition at line 438 of file afvclient.cpp.

◆ setRxTx()

void swift::core::afv::clients::CAfvClient::setRxTx ( bool  rx1,
bool  tx1,
bool  rx2,
bool  tx2 
)

Simplified enable/disable.

Remarks
This function is thread safe.

Definition at line 601 of file afvclient.cpp.

◆ setTransmittingComUnit()

void swift::core::afv::clients::CAfvClient::setTransmittingComUnit ( swift::misc::aviation::CComSystem::ComUnit  comUnit)

Set transmitting transceivers.

Remarks
This function is thread safe.

Definition at line 578 of file afvclient.cpp.

◆ setTransmittingTransceiver()

void swift::core::afv::clients::CAfvClient::setTransmittingTransceiver ( quint16  transceiverID)

Set transmitting transceivers.

Remarks
This function is thread safe.

Definition at line 572 of file afvclient.cpp.

◆ setTransmittingTransceivers()

void swift::core::afv::clients::CAfvClient::setTransmittingTransceivers ( const QVector< TxTransceiverDto > &  transceivers)

Set transmitting transceivers.

Remarks
This function is thread safe.

Definition at line 583 of file afvclient.cpp.

◆ updateComFrequency() [1/3]

void swift::core::afv::clients::CAfvClient::updateComFrequency ( quint16  id,
quint32  frequencyHz 
)

Update frequency.

Remarks
This function is thread safe.

Definition at line 477 of file afvclient.cpp.

◆ updateComFrequency() [2/3]

void swift::core::afv::clients::CAfvClient::updateComFrequency ( swift::misc::aviation::CComSystem::ComUnit  comUnit,
const swift::misc::aviation::CComSystem comSystem 
)

Update frequency.

Remarks
This function is thread safe.

Definition at line 511 of file afvclient.cpp.

◆ updateComFrequency() [3/3]

void swift::core::afv::clients::CAfvClient::updateComFrequency ( swift::misc::aviation::CComSystem::ComUnit  comUnit,
const swift::misc::physical_quantities::CFrequency comFrequency 
)

Update frequency.

Remarks
This function is thread safe.

Definition at line 505 of file afvclient.cpp.

◆ updateFromOwnAircraft()

void swift::core::afv::clients::CAfvClient::updateFromOwnAircraft ( const swift::misc::simulation::CSimulatedAircraft aircraft,
bool  withSignals = true 
)

Update from own aircraft.

Remarks
full update of frequency, position and enabled transceivers in one step
This function is thread safe.

Definition at line 1122 of file afvclient.cpp.

◆ updatePosition()

void swift::core::afv::clients::CAfvClient::updatePosition ( double  latitudeDeg,
double  longitudeDeg,
double  heightMeters 
)

Update own aircraft position.

Remarks
This function is thread safe.

Definition at line 516 of file afvclient.cpp.

◆ usesSameDevices()

bool swift::core::afv::clients::CAfvClient::usesSameDevices ( const swift::misc::audio::CAudioDeviceInfo inputDevice,
const swift::misc::audio::CAudioDeviceInfo outputDevice 
)

Recently used device.

Remarks
This function is thread safe.

Definition at line 1522 of file afvclient.cpp.


The documentation for this class was generated from the following files: