6 #ifndef SWIFT_GUI_COMPONENTS_AUDIODEVICEVOLUMESETUPCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_AUDIODEVICEVOLUMESETUPCOMPONENT_H
12 #include <QScopedPointer>
24 class CAudioDeviceVolumeSetupComponent;
26 namespace swift::core::afv::clients
70 void setInLevel(
double value);
71 void setOutLevel(
double value);
79 void initWithAfvClient();
82 void reloadSettings();
86 void onAudioDeviceSelected(
int index);
93 void onAudioStopped();
99 void onLoopbackToggled(
bool loopback);
102 void onDisableAudioEffectsToggled(
bool disabled);
105 void initAudioDeviceLists();
108 bool hasAudio()
const;
111 bool hasSimulator()
const;
114 void onVolumeSliderChanged(
int v);
119 void onOutputVU(
double vu);
120 void onInputVU(
double vu);
122 void onReloadDevices();
123 void onResetVolumeIn();
124 void onResetVolumeOut();
125 void onResetVolumeOutCom1();
126 void onResetVolumeOutCom2();
128 void showAudioRunsWhereDialog();
130 bool isComIntegrated()
const;
132 void onRxTxChanged(
bool checked);
133 void setRxTxCheckboxes(
bool rx1,
bool tx1,
bool rx2,
bool tx2);
138 void onUpdatedClientWithCockpitData();
145 void setTransmitReceiveInUi(
bool tx1,
bool rec1,
bool tx2,
bool rec2,
bool integrated);
146 void setTransmitReceiveInUiFromVoiceClient();
150 void setCheckBoxesReadOnly(
bool readonly);
153 void setVolumeSlidersReadOnly(
bool readonly);
163 std::chrono::milliseconds(1000), 10 };
165 this, &CAudioDeviceVolumeSetupComponent::reloadSettings
169 void simulatorSettingsChanged();
Audio setup such as input / output devices.
~CAudioDeviceVolumeSetupComponent()
Destructor.
List of QMetaObject::Connection.
Receive 1..n signals, collect them over time, and resend afer n milliseconds.
Value object encapsulating information of a audio device.
Value object encapsulating a list of audio devices.
static constexpr int OutMin
Ranges for audio.
static constexpr int OutMax
Ranges for audio.
static constexpr int InMin
Ranges for audio.
static constexpr int InMax
Ranges for audio.
Value object for a set of callsigns.
High level reusable GUI components.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.