10namespace swift::misc::network
16 return std::ranges::any_of(*
this, [&](
const CServer &s) {
return s.
matchesName(name); });
27 for (
const CServer &server : copy)
29 if (!server.matchesName(name))
66 for (
const CServer &s : servers)
void push_back(const CServer &value)
int remove(const CServer &object)
Value object for a FSD setup.
Value object encapsulating information of a FSD 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.
void setFsdSetup(const CFsdSetup &setup)
Set FSD setup.
CSequence()=default
Default constructor.
CServerList()=default
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.
void addIfAddressNotExists(const CServer &server)
Add if address not already exists.
Value object encapsulating information of a user.
bool isEmpty() const const
#define SWIFT_DEFINE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template definition of mixins for a CSequence subclass.