swift
afvclientbridge.cpp
1 // SPDX-FileCopyrightText: Copyright (C) 2019 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
4 #include "afvclientbridge.h"
5 
6 using namespace swift::core::afv::clients;
7 
8 CAfvClientBridge::CAfvClientBridge(CAfvClient *afvClient, QObject *parent) : QObject(parent), m_afvClient(afvClient)
9 {
10  connect(afvClient, &CAfvClient::receivingCallsignsChanged, this, &CAfvClientBridge::receivingCallsignsChanged);
11  connect(afvClient, &CAfvClient::connectionStatusChanged, this, &CAfvClientBridge::connectionStatusChanged);
12  connect(afvClient, &CAfvClient::updatedFromOwnAircraftCockpit, this,
14  connect(afvClient, &CAfvClient::ptt, this, &CAfvClientBridge::ptt);
15  connect(afvClient, &CAfvClient::inputVolumePeakVU, this, &CAfvClientBridge::inputVolumePeakVU);
16  connect(afvClient, &CAfvClient::outputVolumePeakVU, this, &CAfvClientBridge::outputVolumePeakVU);
17 }
void receivingCallsignsChanged(const swift::core::afv::audio::TransceiverReceivingCallsignsChangedArgs &args)
Receiving callsigns have been changed.
double inputVolumePeakVU
Bridge properties.
void updatedFromOwnAircraftCockpit()
Client updated from own aicraft data.
void connectionStatusChanged(swift::core::afv::clients::CAfvClient::ConnectionStatus status)
Connection status has been changed.
double outputVolumePeakVU
Bridge properties.
CAfvClientBridge(swift::core::afv::clients::CAfvClient *afvClient, QObject *parent=nullptr)
Ctor.
void ptt(bool active, const swift::misc::CIdentifier &identifier)
PTT status in this particular AFV client.