mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Renaming, header, Doxygen, formatting (during refs #314)
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
/* Copyright (C) 2013 VATSIM Community / authors
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
/* Copyright (C) 2013
|
||||
* 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 and at http://www.swift-project.org/license.html. 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.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKMISC_NETWORKUTILS_H
|
||||
#define BLACKMISC_NETWORKUTILS_H
|
||||
@@ -12,25 +18,20 @@
|
||||
namespace BlackMisc
|
||||
{
|
||||
|
||||
/*!
|
||||
* \brief Utilities, e.g. checking whether a network connection can be established
|
||||
*/
|
||||
//! Utilities, e.g. checking whether a network connection can be established
|
||||
class CNetworkUtils
|
||||
{
|
||||
private:
|
||||
// Constructor
|
||||
CNetworkUtils() {}
|
||||
|
||||
public:
|
||||
/*!
|
||||
* \brief Is a connected interface available?
|
||||
* Is a connected interface available?
|
||||
* \param withDebugOutput enables some debugging output
|
||||
* \return
|
||||
*/
|
||||
static bool hasConnectedInterface(bool withDebugOutput = false);
|
||||
|
||||
/*!
|
||||
* \brief Can connect?
|
||||
* Can connect?
|
||||
* \param hostAddress 130.4.20.3, or myserver.com
|
||||
* \param port 80, 1234
|
||||
* \param timeoutMs
|
||||
@@ -40,7 +41,7 @@ namespace BlackMisc
|
||||
static bool canConnect(const QString &hostAddress, quint16 port, QString &message, int timeoutMs = 1500);
|
||||
|
||||
/*!
|
||||
* \brief Can connect to server?
|
||||
* Can connect to server?
|
||||
* \param server
|
||||
* \param message human readable message
|
||||
* \param timeoutMs
|
||||
@@ -60,6 +61,10 @@ namespace BlackMisc
|
||||
//! Valid port
|
||||
static bool isValidPort(const QString &port);
|
||||
|
||||
private:
|
||||
//! Deleted constructor
|
||||
CNetworkUtils() {}
|
||||
|
||||
};
|
||||
} // namespace
|
||||
|
||||
|
||||
Reference in New Issue
Block a user