QcPackComparison Namespace
Compares the content packs of server and client at the login (decision E-252): same ids, same versions and, where both sides computed one, the same hash over the files. More...
| Header: | #include <common/protocol/QcPackComparison.h> |
Variables
| const qsizetype | maxNamed |
Functions
| QStringList | differences(const QList<QcPackFingerprint> &server, const QList<QcPackFingerprint> &client) |
| QString | summary(const QStringList &differences) |
Detailed Description
Variable Documentation
const qsizetype QcPackComparison::maxNamed
Differences are named at most this often; more are summed up.
Function Documentation
QStringList QcPackComparison::differences(const QList<QcPackFingerprint> &server, const QList<QcPackFingerprint> &client)
Returns one English line per difference between the packs of the server and the client ("missing: rubies 1.0", "extra: fun 2.0", "rubies: server 1.1, client 1.0", "rubies 1.0: different files"); empty when the packs match.
QString QcPackComparison::summary(const QStringList &differences)
Returns differences as one line, the first maxNamed of them.