mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Added CServer member isAcceptingConnections.
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
#include <QMap>
|
||||
#include <QVector>
|
||||
#include <QMetaEnum>
|
||||
#include <QList>
|
||||
#include <QUrl>
|
||||
|
||||
namespace BlackCore
|
||||
{
|
||||
@@ -120,6 +122,18 @@ namespace BlackCore
|
||||
*/
|
||||
virtual bool isConnected() const = 0;
|
||||
|
||||
/*!
|
||||
* Returns a list of URLs where network status data can be found.
|
||||
* To obtain the status, one of these URLs should be picked at random.
|
||||
*/
|
||||
virtual QList<QUrl> getStatusUrls() const = 0;
|
||||
|
||||
/*!
|
||||
* Returns a list of known servers which may be connected to.
|
||||
* Not all servers may be accepting connections; consult the CServer::isAcceptingConnections method.
|
||||
*/
|
||||
virtual BlackMisc::Network::CServerList getKnownServers() const = 0;
|
||||
|
||||
public slots:
|
||||
////////////////////////////////////////////////////////////////
|
||||
//! \name Network slots
|
||||
|
||||
Reference in New Issue
Block a user