8 namespace swift::misc::network
25 if (name.isEmpty()) {
return false; }
28 for (
const CServer &server : copy)
30 if (!server.matchesName(name)) {
continue; }
void push_back(const CServer &value)
Appends an element at the end of the sequence.
int remove(const CServer &object)
Remove all elements equal to the given object, if it is contained.
Value object for a FSD setup.
Value object encapsulating information of a server.
bool hasAddressAndPort() const
Address and port?
bool matchesName(const QString &name) const
Matches server name?
bool matchesAddressPort(const CServer &server) const
Same address and port?
const QString & getName() const
Get name.
void setUser(const CUser &user)
Set user.
bool isFsdServer() const
A FSD server?
void setFsdSetup(const CFsdSetup &setup)
Set FSD setup.
Value object encapsulating a list of servers.
CServerList()
Default constructor.
void setFsdSetup(const CFsdSetup &setup)
Set FSD setup for all entries.
bool containsName(const QString &name) const
Contains name.
bool containsAddressPort(const CServer &server)
Contains server with same address/port.
bool removeByName(const QString &name)
Remove by name.
void removeUsers()
Remove passwords.
CServerList findFsdServers() const
Find all FSD servers.
void addIfAddressNotExists(const CServer &server)
Add if address not already exists.
Value object encapsulating information of a user.
#define SWIFT_DEFINE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template definition of mixins for a CSequence subclass.