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

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.
 
- Properties inherited from QObject
 objectName
 

Additional Inherited Members

- Public Types inherited from QObject
enum  TimerId
 
- 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)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
 Invalid
 
- 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
 

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: