mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Some fixes / tweaks / Doxygen:
* helper method to detect disconnected state * clear ATC info if disconnected or not available * unit test for "finders" * added Doxygen file * formatting frequency in text message tabs
This commit is contained in:
@@ -125,6 +125,16 @@ namespace BlackCore
|
||||
return status == Disconnecting || status == Connecting;
|
||||
}
|
||||
|
||||
/*!
|
||||
* Returns true if the given ConnectionStatus represents a disconnected state.
|
||||
*/
|
||||
static bool isDisconnectedStatus(ConnectionStatus status)
|
||||
{
|
||||
return status == Disconnected || status == DisconnectedError ||
|
||||
status == DisconnectedFailed || status == DisconnectedLost;
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
* Returns true if the current ConnectionStatus is a connected state.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user