mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 10:47:01 +08:00
Fixed adding the hardcoded test servers in a dev. environment
(issue found during debugging of #533) Added some functions to find similar servers by address/port
This commit is contained in:
@@ -64,6 +64,12 @@ namespace BlackMisc
|
||||
//! Matches server name?
|
||||
bool matchesName(const QString &name) const;
|
||||
|
||||
//! Same address and port?
|
||||
bool matchesAddressPort(const CServer &server) const;
|
||||
|
||||
//! Same address?
|
||||
bool matchesAddress(const QString &address) const;
|
||||
|
||||
//! Get description
|
||||
const QString &getDescription() const { return m_description; }
|
||||
|
||||
@@ -85,6 +91,9 @@ namespace BlackMisc
|
||||
//! Is valid for login?
|
||||
bool isValidForLogin() const;
|
||||
|
||||
//! Address and port?
|
||||
bool hasAddressAndPort() const;
|
||||
|
||||
//! Validate, provide details about issues
|
||||
BlackMisc::CStatusMessageList validate() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user