|
swift
|
AFV client. More...
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. | |
| CAfvClient & | operator= (const CAfvClient &)=delete |
| Copy operations. | |
| CAfvClient (const CAfvClient &&)=delete | |
| }@ More... | |
| CAfvClient & | operator= (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< TransceiverDto > | getTransceivers () const |
| Get transceivers. More... | |
| QVector< TxTransceiverDto > | getTransmittingTransceivers () 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::CAudioDeviceInfo & | getInputDevice () const |
| Recently used device. More... | |
| const swift::misc::audio::CAudioDeviceInfo & | getOutputDevice () 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 QString & | getName () |
| Name of the worker. | |
| const QObject * | owner () const |
| Owner of the worker. | |
Public Member Functions inherited from swift::misc::CWorkerBase | |
| ~CWorkerBase () | |
| Destructor. | |
| CWorkerBase (const CWorkerBase &)=delete | |
| Copy constructor. | |
| CWorkerBase & | operator= (const CWorkerBase &)=delete |
| Copy assignment. | |
| CWorkerBase (CWorkerBase &&)=delete | |
| Move constructor. | |
| CWorkerBase & | operator= (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< QString > | bindableObjectName () |
| 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 | |
| T | qobject_cast (QObject *object) |
| T | 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< QByteArray > | dynamicPropertyNames () 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 |
| QObject * | parent () const const |
| QString | objectName () const const |
| QThread * | thread () const const |
| QVariant | property (const char *name) const const |
| T | findChild (QAnyStringView name, Qt::FindChildOptions options) const const |
| T | 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 QMetaObject * | metaObject () const const |
| const QObjectList & | children () const const |
| void | dumpObjectInfo () const const |
| void | dumpObjectTree () const const |
Public Member Functions inherited from swift::misc::CIdentifiable | |
| const CIdentifier & | identifier () 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 QStringList & | getLogCategories () |
| Categories. | |
Static Public Member Functions inherited from swift::misc::CWorkerBase | |
| static const QStringList & | getLogCategories () |
| 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) |
| QObject * | sender () 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. | |
| CIdentifiable & | operator= (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 | |
AFV client.
Definition at line 33 of file afvclient.h.
|
delete |
}@
Move operations
|
protectedvirtual |
Called when the thread is finished.
Reimplemented from swift::misc::CContinuousWorker.
Definition at line 1011 of file afvclient.cpp.
| void swift::core::afv::clients::CAfvClient::connectTo | ( | const QString & | cid, |
| const QString & | password, | ||
| const QString & | callsign, | ||
| const QString & | client | ||
| ) |
Connect to network.
Definition at line 136 of file afvclient.cpp.
|
inline |
Disconnect from network.
Definition at line 103 of file afvclient.h.
| void swift::core::afv::clients::CAfvClient::disconnectFrom | ( | bool | stop | ) |
Disconnect from network.
Definition at line 205 of file afvclient.cpp.
|
inline |
Disconnect from network.
Definition at line 104 of file afvclient.h.
| void swift::core::afv::clients::CAfvClient::enableComUnit | ( | swift::misc::aviation::CComSystem::ComUnit | comUnit, |
| bool | enable | ||
| ) |
Enable COM unit/transceiver.
Definition at line 456 of file afvclient.cpp.
| void swift::core::afv::clients::CAfvClient::enableTransceiver | ( | quint16 | id, |
| bool | enable | ||
| ) |
Enable COM unit/transceiver.
Definition at line 445 of file afvclient.cpp.
| QString swift::core::afv::clients::CAfvClient::getCallsign | ( | ) | const |
}@
Corresponding callsign
Definition at line 59 of file afvclient.cpp.
| double swift::core::afv::clients::CAfvClient::getComOutputVolumeDb | ( | swift::misc::aviation::CComSystem::ComUnit | comUnit | ) | const |
Output volume for each COM in dB, [MinDbOut, MaxDbOut]dB.
Definition at line 741 of file afvclient.cpp.
| CAfvClient::ConnectionStatus swift::core::afv::clients::CAfvClient::getConnectionStatus | ( | ) | const |
Connection status.
Definition at line 1533 of file afvclient.cpp.
| QSet< quint16 > swift::core::afv::clients::CAfvClient::getEnabledTransceivers | ( | ) | const |
Get transceivers.
Definition at line 655 of file afvclient.cpp.
| const CAudioDeviceInfo & swift::core::afv::clients::CAfvClient::getInputDevice | ( | ) | const |
Recently used device.
Definition at line 1506 of file afvclient.cpp.
| double swift::core::afv::clients::CAfvClient::getInputVolumeDb | ( | ) | const |
Input volume in dB, [MinDbIn, MaxDbIn]dB.
Definition at line 705 of file afvclient.cpp.
| double swift::core::afv::clients::CAfvClient::getInputVolumePeakVU | ( | ) | const |
| int swift::core::afv::clients::CAfvClient::getNormalizedComOutputVolume | ( | swift::misc::aviation::CComSystem::ComUnit | comUnit | ) | const |
Normalized volumes 0..100.
Definition at line 773 of file afvclient.cpp.
| int swift::core::afv::clients::CAfvClient::getNormalizedInputVolume | ( | ) | const |
Normalized volumes 0..100.
Definition at line 759 of file afvclient.cpp.
| int swift::core::afv::clients::CAfvClient::getNormalizedMasterOutputVolume | ( | ) | const |
Normalized volumes 0..100.
Definition at line 767 of file afvclient.cpp.
| const CAudioDeviceInfo & swift::core::afv::clients::CAfvClient::getOutputDevice | ( | ) | const |
Recently used device.
Definition at line 1514 of file afvclient.cpp.
| double swift::core::afv::clients::CAfvClient::getOutputGainRatio | ( | swift::misc::aviation::CComSystem::ComUnit | comUnit | ) | const |
| double swift::core::afv::clients::CAfvClient::getOutputVolumePeakVU | ( | ) | const |
| CCallsignSet swift::core::afv::clients::CAfvClient::getReceivingCallsignsCom1 | ( | ) | const |
Callsigns currently received.
Definition at line 967 of file afvclient.cpp.
| CCallsignSet swift::core::afv::clients::CAfvClient::getReceivingCallsignsCom2 | ( | ) | const |
Callsigns currently received.
Definition at line 974 of file afvclient.cpp.
| QString swift::core::afv::clients::CAfvClient::getReceivingCallsignsStringCom1 | ( | ) | const |
Callsigns currently received.
Definition at line 953 of file afvclient.cpp.
| QStringList swift::core::afv::clients::CAfvClient::getReceivingCallsignsStringCom1Com2 | ( | ) | const |
Callsigns currently received.
Definition at line 981 of file afvclient.cpp.
| QString swift::core::afv::clients::CAfvClient::getReceivingCallsignsStringCom2 | ( | ) | const |
Callsigns currently received.
Definition at line 960 of file afvclient.cpp.
| void swift::core::afv::clients::CAfvClient::getRxTx | ( | bool & | rx1, |
| bool & | tx1, | ||
| bool & | rx2, | ||
| bool & | tx2 | ||
| ) | const |
Simplified enable/disable.
Definition at line 630 of file afvclient.cpp.
| QVector< TransceiverDto > swift::core::afv::clients::CAfvClient::getTransceivers | ( | ) | const |
Get transceivers.
Definition at line 649 of file afvclient.cpp.
| QVector< TxTransceiverDto > swift::core::afv::clients::CAfvClient::getTransmittingTransceivers | ( | ) | const |
Get transceivers.
Definition at line 661 of file afvclient.cpp.
|
protectedvirtual |
Called when the thread is started.
Reimplemented from swift::misc::CContinuousWorker.
Definition at line 1006 of file afvclient.cpp.
|
inline |
Is integrated with COM unit.
Definition at line 138 of file afvclient.h.
| bool swift::core::afv::clients::CAfvClient::isConnected | ( | ) | const |
Is connected to network?
Definition at line 71 of file afvclient.cpp.
| bool swift::core::afv::clients::CAfvClient::isEnabledComUnit | ( | swift::misc::aviation::CComSystem::ComUnit | comUnit | ) | const |
Enable COM unit/transceiver.
Definition at line 472 of file afvclient.cpp.
| bool swift::core::afv::clients::CAfvClient::isEnabledTransceiver | ( | quint16 | id | ) | const |
Enable COM unit/transceiver.
Definition at line 461 of file afvclient.cpp.
|
inline |
| bool swift::core::afv::clients::CAfvClient::isOutputMuted | ( | ) | const |
| bool swift::core::afv::clients::CAfvClient::isTransmittingComUnit | ( | swift::misc::aviation::CComSystem::ComUnit | comUnit | ) | const |
Transmitting transceiver/COM unit.
Definition at line 596 of file afvclient.cpp.
| bool swift::core::afv::clients::CAfvClient::isTransmittingTransceiver | ( | quint16 | id | ) | const |
Transmitting transceiver/COM unit.
Definition at line 589 of file afvclient.cpp.
|
signal |
Received callsigns have been changed.
|
signal |
Receiving callsigns have been changed.
| 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.
Definition at line 1453 of file afvclient.cpp.
| bool swift::core::afv::clients::CAfvClient::setInputVolumeDb | ( | double | valueDb | ) |
Input volume in dB, [MinDbIn, MaxDbIn]dB.
Definition at line 711 of file afvclient.cpp.
|
inline |
| bool swift::core::afv::clients::CAfvClient::setNormalizedComOutputVolume | ( | swift::misc::aviation::CComSystem::ComUnit | comUnit, |
| int | volume | ||
| ) |
Normalized volumes 0..100.
Definition at line 822 of file afvclient.cpp.
| bool swift::core::afv::clients::CAfvClient::setNormalizedInputVolume | ( | int | volume | ) |
Normalized volumes 0..100.
Definition at line 782 of file afvclient.cpp.
| bool swift::core::afv::clients::CAfvClient::setNormalizedMasterOutputVolume | ( | int | volume | ) |
Normalized volumes 0..100.
Definition at line 793 of file afvclient.cpp.
| void swift::core::afv::clients::CAfvClient::setOutputMuted | ( | bool | mute | ) |
| void swift::core::afv::clients::CAfvClient::setPtt | ( | bool | active | ) |
Push to talk.
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.
| void swift::core::afv::clients::CAfvClient::setReceiveAudio | ( | bool | receive | ) |
| void swift::core::afv::clients::CAfvClient::setRxTx | ( | bool | rx1, |
| bool | tx1, | ||
| bool | rx2, | ||
| bool | tx2 | ||
| ) |
Simplified enable/disable.
Definition at line 601 of file afvclient.cpp.
| void swift::core::afv::clients::CAfvClient::setTransmittingComUnit | ( | swift::misc::aviation::CComSystem::ComUnit | comUnit | ) |
Set transmitting transceivers.
Definition at line 578 of file afvclient.cpp.
| void swift::core::afv::clients::CAfvClient::setTransmittingTransceiver | ( | quint16 | transceiverID | ) |
Set transmitting transceivers.
Definition at line 572 of file afvclient.cpp.
| void swift::core::afv::clients::CAfvClient::setTransmittingTransceivers | ( | const QVector< TxTransceiverDto > & | transceivers | ) |
Set transmitting transceivers.
Definition at line 583 of file afvclient.cpp.
| void swift::core::afv::clients::CAfvClient::updateComFrequency | ( | quint16 | id, |
| quint32 | frequencyHz | ||
| ) |
Update frequency.
Definition at line 477 of file afvclient.cpp.
| void swift::core::afv::clients::CAfvClient::updateComFrequency | ( | swift::misc::aviation::CComSystem::ComUnit | comUnit, |
| const swift::misc::aviation::CComSystem & | comSystem | ||
| ) |
Update frequency.
Definition at line 511 of file afvclient.cpp.
| void swift::core::afv::clients::CAfvClient::updateComFrequency | ( | swift::misc::aviation::CComSystem::ComUnit | comUnit, |
| const swift::misc::physical_quantities::CFrequency & | comFrequency | ||
| ) |
Update frequency.
Definition at line 505 of file afvclient.cpp.
| void swift::core::afv::clients::CAfvClient::updateFromOwnAircraft | ( | const swift::misc::simulation::CSimulatedAircraft & | aircraft, |
| bool | withSignals = true |
||
| ) |
Update from own aircraft.
Definition at line 1122 of file afvclient.cpp.
| void swift::core::afv::clients::CAfvClient::updatePosition | ( | double | latitudeDeg, |
| double | longitudeDeg, | ||
| double | heightMeters | ||
| ) |
Update own aircraft position.
Definition at line 516 of file afvclient.cpp.
| bool swift::core::afv::clients::CAfvClient::usesSameDevices | ( | const swift::misc::audio::CAudioDeviceInfo & | inputDevice, |
| const swift::misc::audio::CAudioDeviceInfo & | outputDevice | ||
| ) |
Recently used device.
Definition at line 1522 of file afvclient.cpp.