Public Member Functions | |
| ServerPasswordSummary (const Server *server, const QString &type) | |
| Builds ServerPasswordSummary out of provided data. More... | |
| const QString & | address () const |
| const QString & | game () const |
| bool | isValid () const |
| const QString & | name () const |
| unsigned short | port () const |
| QVariant | serializeQVariant () const |
| const ServerSummary & | serverSummary () const |
| void | setServerSummary (const ServerSummary &val) |
| void | setType (const QString &val) |
| One of ServerPasswordType consts or custom. More... | |
| float | similarity (const ServerPasswordSummary &other) const |
| Similarity to the 'other' server; between 0.0 and 1.0. More... | |
| QDateTime | time () const |
| const QString & | type () const |
| One of ServerPasswordType consts or custom. More... | |
| const QString & | typeWithCompatibility () const |
| Returns type(), if type() is empty returns ServerPasswordType::CONNECT . More... | |
Static Public Member Functions | |
| static ServerPasswordSummary | deserializeQVariant (const QVariant &v) |
Definition at line 40 of file serverpasswordsummary.h.
| ServerPasswordSummary::ServerPasswordSummary | ( | const Server * | server, |
| const QString & | type | ||
| ) |
Builds ServerPasswordSummary out of provided data.
| server | Data such as game or address are extracted from this object. |
| type | Password use-case type, either one of ServerPasswordType consts or custom. |
Definition at line 47 of file serverpasswordsummary.cpp.
| void ServerPasswordSummary::setType | ( | const QString & | val | ) |
One of ServerPasswordType consts or custom.
Definition at line 108 of file serverpasswordsummary.cpp.
| float ServerPasswordSummary::similarity | ( | const ServerPasswordSummary & | other | ) | const |
Similarity to the 'other' server; between 0.0 and 1.0.
Similarity is calculated basing on serverSummary() and type().
Both servers must be valid.
Definition at line 113 of file serverpasswordsummary.cpp.
| const QString & ServerPasswordSummary::type | ( | ) | const |
One of ServerPasswordType consts or custom.
Definition at line 133 of file serverpasswordsummary.cpp.
| const QString & ServerPasswordSummary::typeWithCompatibility | ( | ) | const |
Returns type(), if type() is empty returns ServerPasswordType::CONNECT .
This provides compatibility with configuration stored by Doomseeker <=0.11.1
Definition at line 138 of file serverpasswordsummary.cpp.