mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 15:45:42 +08:00
refs #320 port Network to new vatlib
* CNetworkVatlib * Contexts * Samples
This commit is contained in:
@@ -191,12 +191,11 @@ namespace BlackGui
|
||||
this->m_timestampBookedStationsChanged = QDateTime::currentDateTimeUtc();
|
||||
}
|
||||
|
||||
void CAtcStationComponent::ps_connectionStatusChanged(uint from, uint to, const QString &message)
|
||||
void CAtcStationComponent::ps_connectionStatusChanged(uint from, uint to)
|
||||
{
|
||||
INetwork::ConnectionStatus fromStatus = static_cast<INetwork::ConnectionStatus>(from);
|
||||
INetwork::ConnectionStatus toStatus = static_cast<INetwork::ConnectionStatus>(to);
|
||||
Q_UNUSED(fromStatus);
|
||||
Q_UNUSED(message);
|
||||
if (INetwork::isDisconnectedStatus(toStatus))
|
||||
{
|
||||
this->ui->tvp_AtcStationsOnline->clear();
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace BlackGui
|
||||
void ps_changedAtcStationsOnline();
|
||||
|
||||
//! Connection status has been changed
|
||||
void ps_connectionStatusChanged(uint from, uint to, const QString &message);
|
||||
void ps_connectionStatusChanged(uint from, uint to);
|
||||
|
||||
//! Request dummy ATC online stations
|
||||
void ps_testCreateDummyOnlineAtcStations(int number);
|
||||
|
||||
@@ -113,12 +113,11 @@ namespace BlackGui
|
||||
Q_UNUSED(paused);
|
||||
}
|
||||
|
||||
void CInfoBarStatusComponent::ps_onNetworkConnectionChanged(uint from, uint to, const QString &message)
|
||||
void CInfoBarStatusComponent::ps_onNetworkConnectionChanged(uint from, uint to)
|
||||
{
|
||||
INetwork::ConnectionStatus fromStatus = static_cast<INetwork::ConnectionStatus>(from);
|
||||
INetwork::ConnectionStatus toStatus = static_cast<INetwork::ConnectionStatus>(to);
|
||||
Q_UNUSED(fromStatus);
|
||||
Q_UNUSED(message);
|
||||
|
||||
switch (toStatus)
|
||||
{
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace BlackGui
|
||||
void ps_onSimulatorStatusChanged(bool connected, bool running, bool paused);
|
||||
|
||||
//! Network connection has been changed
|
||||
void ps_onNetworkConnectionChanged(uint from, uint to, const QString &message);
|
||||
void ps_onNetworkConnectionChanged(uint from, uint to);
|
||||
|
||||
//! Context menu requested
|
||||
void ps_customAudioContextMenuRequested(const QPoint &position);
|
||||
|
||||
@@ -129,13 +129,12 @@ namespace BlackGui
|
||||
}
|
||||
}
|
||||
|
||||
void CMainKeypadAreaComponent::ps_connectionStatusChanged(uint from, uint to, const QString &message)
|
||||
void CMainKeypadAreaComponent::ps_connectionStatusChanged(uint from, uint to)
|
||||
{
|
||||
INetwork::ConnectionStatus statusFrom = static_cast<INetwork::ConnectionStatus>(from);
|
||||
INetwork::ConnectionStatus statusTo = static_cast<INetwork::ConnectionStatus>(to);
|
||||
|
||||
Q_UNUSED(statusFrom);
|
||||
Q_UNUSED(message);
|
||||
|
||||
// Connected button
|
||||
if (statusTo == INetwork::Connected)
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace BlackGui
|
||||
void ps_buttonSelected();
|
||||
|
||||
//! \copydoc BlackCore::IContextNetwork::connectionStatusChanged
|
||||
void ps_connectionStatusChanged(uint from, uint to, const QString &message);
|
||||
void ps_connectionStatusChanged(uint from, uint to);
|
||||
|
||||
//! Command line entered
|
||||
void ps_commandEntered();
|
||||
|
||||
Reference in New Issue
Block a user