mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
INetwork: removed the five connectionStatus signals and added one signal with an enum argument to replace them.
Requested by Klaus, to ease the implementation of signal consumers.
This commit is contained in:
@@ -55,6 +55,13 @@ namespace BlackCore
|
||||
SupportsModelDescriptions = 1 << 2
|
||||
};
|
||||
|
||||
enum ConnectionStatus
|
||||
{
|
||||
Disconnected = 0,
|
||||
Connecting,
|
||||
Connected
|
||||
};
|
||||
|
||||
public slots:
|
||||
// Network
|
||||
virtual void setServer(const BlackMisc::Network::CServer &server) = 0;
|
||||
@@ -108,11 +115,7 @@ namespace BlackCore
|
||||
|
||||
// Connection / Network in general
|
||||
void kicked(const QString &msg);
|
||||
void connectionStatusIdle();
|
||||
void connectionStatusConnecting();
|
||||
void connectionStatusConnected();
|
||||
void connectionStatusDisconnected();
|
||||
void connectionStatusError();
|
||||
void connectionStatusChanged(ConnectionStatus status);
|
||||
void pong(const BlackMisc::Aviation::CCallsign &callsign, const BlackMisc::PhysicalQuantities::CTime &elapsedTime);
|
||||
void capabilitiesQueryReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, quint32 flags);
|
||||
void ipQueryReplyReceived(const QString &ip);
|
||||
|
||||
Reference in New Issue
Block a user