swift
Signals | Public Member Functions | List of all members
CAfvClientBridge Class Reference

Bridge, running in main thread -> voice client in own thread. More...

Inheritance diagram for CAfvClientBridge:
[legend]

Signals

void receivingCallsignsChanged (const swift::core::afv::audio::TransceiverReceivingCallsignsChangedArgs &args)
 Receiving callsigns have been changed. More...
 
void connectionStatusChanged (swift::core::afv::clients::CAfvClient::ConnectionStatus status)
 Connection status has been changed.
 
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 inputVolumePeakVU (double value)
 VU levels.
 
void outputVolumePeakVU (double value)
 VU levels.
 

Public Member Functions

 CAfvClientBridge (swift::core::afv::clients::CAfvClient *afvClient, QObject *parent=nullptr)
 Ctor.
 
swift::core::afv::clients::CAfvClient::ConnectionStatus getConnectionStatus () const
 Connection status. More...
 
Q_INVOKABLE void connectTo (const QString &cid, const QString &password, const QString &callsign)
 Connect to network. More...
 
Q_INVOKABLE void disconnectFrom ()
 Disconnect from network. More...
 
Q_INVOKABLE void setBypassEffects (bool value)
 Enable/disable VHF simulation, true means effects are NOT used.
 
Q_INVOKABLE void startAudio (const QString &inputDeviceName, const QString &outputDeviceName)
 Start/stop client. More...
 
Q_INVOKABLE void enableTransceiver (quint16 id, bool enable)
 Enable COM unit/transceiver. More...
 
Q_INVOKABLE void updateComFrequency (quint16 id, quint32 frequencyHz)
 Update frequency. More...
 
Q_INVOKABLE void updatePosition (double latitudeDeg, double longitudeDeg, double heightMeters)
 Update own aircraft position. More...
 
Q_INVOKABLE void setPtt (bool active)
 Push to talk. More...
 
Q_INVOKABLE void setInputVolumeDb (double valueDb)
 Input volume in dB, [MinDbIn, MaxDbIn]dB. More...
 
Q_INVOKABLE void setNormalizedMasterOutputVolume (double valueDb)
 Normalized volumes 0..100. More...
 
double getInputVolumePeakVU () const
 VU values, 0..1.
 
double getOutputVolumePeakVU () const
 VU values, 0..1.
 
QString getReceivingCallsignsCom1 ()
 Callsigns currently received.
 
QString getReceivingCallsignsCom2 ()
 Callsigns currently received.
 
Q_INVOKABLE QStringList availableInputDevices () const
 Audio devices.
 
Q_INVOKABLE QStringList availableOutputDevices () const
 Audio devices.
 
Q_INVOKABLE void setLoopBack (bool on)
 Loopback.
 
Q_INVOKABLE bool isLoopback () const
 Loopback.
 

Properties

double inputVolumePeakVU
 Bridge properties.
 
double outputVolumePeakVU
 Bridge properties.
 
swift::core::afv::clients::CAfvClient::ConnectionStatus connectionStatus
 Bridge properties.
 
QString receivingCallsignsCom1
 Bridge properties.
 
QString receivingCallsignsCom2
 Bridge properties.
 

Detailed Description

Bridge, running in main thread -> voice client in own thread.

Definition at line 14 of file afvclientbridge.h.

Member Function Documentation

◆ connectTo()

Q_INVOKABLE void CAfvClientBridge::connectTo ( const QString &  cid,
const QString &  password,
const QString &  callsign 
)
inline

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 51 of file afvclientbridge.h.

◆ disconnectFrom()

Q_INVOKABLE void CAfvClientBridge::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 58 of file afvclientbridge.h.

◆ enableTransceiver()

Q_INVOKABLE void CAfvClientBridge::enableTransceiver ( quint16  id,
bool  enable 
)
inline

Enable COM unit/transceiver.

Remarks
This function is thread safe.

Definition at line 76 of file afvclientbridge.h.

◆ getConnectionStatus()

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

Connection status.

Remarks
This function is thread safe.

Definition at line 39 of file afvclientbridge.h.

◆ receivingCallsignsChanged

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

Receiving callsigns have been changed.

Remarks
callsigns I do receive

◆ setInputVolumeDb()

Q_INVOKABLE void CAfvClientBridge::setInputVolumeDb ( double  valueDb)
inline

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

Remarks
This function is thread safe.

Definition at line 100 of file afvclientbridge.h.

◆ setNormalizedMasterOutputVolume()

Q_INVOKABLE void CAfvClientBridge::setNormalizedMasterOutputVolume ( double  valueDb)
inline

Normalized volumes 0..100.

Remarks
This function is thread safe.

Definition at line 103 of file afvclientbridge.h.

◆ setPtt()

Q_INVOKABLE void CAfvClientBridge::setPtt ( bool  active)
inline

Push to talk.

Remarks
This function is thread safe.

Definition at line 91 of file afvclientbridge.h.

◆ startAudio()

Q_INVOKABLE void CAfvClientBridge::startAudio ( const QString &  inputDeviceName,
const QString &  outputDeviceName 
)
inline

Start/stop client.

Definition at line 70 of file afvclientbridge.h.

◆ updateComFrequency()

Q_INVOKABLE void CAfvClientBridge::updateComFrequency ( quint16  id,
quint32  frequencyHz 
)
inline

Update frequency.

Remarks
This function is thread safe.

Definition at line 79 of file afvclientbridge.h.

◆ updatePosition()

Q_INVOKABLE void CAfvClientBridge::updatePosition ( double  latitudeDeg,
double  longitudeDeg,
double  heightMeters 
)
inline

Update own aircraft position.

Remarks
This function is thread safe.

Definition at line 85 of file afvclientbridge.h.


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