From 55b946d32f021c4b81976ab5de467a66c9184647 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Mon, 10 Feb 2014 19:59:03 +0100 Subject: [PATCH] Add connection status enum to IVoice refs #105 --- src/blackcore/voice.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/blackcore/voice.h b/src/blackcore/voice.h index ebd0a5020..b262ec082 100644 --- a/src/blackcore/voice.h +++ b/src/blackcore/voice.h @@ -57,6 +57,17 @@ namespace BlackCore COM2 /*!< ComUnit 2 */ }; + //! Com status + enum ConnectionStatus + { + Disconnected = 0, //!< Not connected + Disconnecting, //!< In transition to disconnected + DisconnectedError, //!< Disconnected due to socket error + Connecting, //!< Connection initiated but not established + Connected, //!< Connection established + ConnectingFailed, //!< Failed to connect + }; + //! Virtual destructor. virtual ~IVoice() {}