mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
33 lines
1.0 KiB
C++
33 lines
1.0 KiB
C++
/* Copyright (C) 2019
|
|
* swift project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
|
|
* or distributed except according to the terms contained in the LICENSE file.
|
|
*/
|
|
|
|
#include "blackmisc/network/connectionstatus.h"
|
|
|
|
namespace BlackMisc
|
|
{
|
|
namespace Network
|
|
{
|
|
QString CConnectionStatus::convertToQString(bool i18n) const
|
|
{
|
|
Q_UNUSED(i18n);
|
|
|
|
switch (m_connectionStatus)
|
|
{
|
|
case Connected: return QStringLiteral("Connected");
|
|
case Connecting: return QStringLiteral("Connecting");
|
|
case Disconnecting: return QStringLiteral("Disconnecting");
|
|
case Disconnected: return QStringLiteral("Disconnected");
|
|
}
|
|
|
|
Q_UNREACHABLE();
|
|
return {};
|
|
}
|
|
|
|
} // namespace
|
|
} // namespace
|