PWAD hosted on a server. More...
#include <serverstructs.h>
Public Member Functions | |
| PWad (const QString &name, bool optional=false) | |
| PWad (const QString &name, bool optional, const QList< Checksum > &checksums) | |
| PWad (const ModFile &modFile) | |
| PWad (const PWad &other) | |
| void | addChecksum (const QByteArray &hash, const QCryptographicHash::Algorithm &algorithm) |
| Adds a checksum to the WAD. | |
| const QList< Checksum > | checksums () const |
| List of checksums of the WAD. | |
| bool | isOptional () const |
| Is this WAD required to join the server? | |
| const QString & | name () const |
| File name of the WAD. | |
| operator ModFile () | |
| PWad & | operator= (const PWad &other) |
| bool | validFile (const QString &path) const |
| Verifies if a file has the same checksums as the PWad. | |
PWAD hosted on a server.
Some ports support optional wads.
This object is safe to copy.
Definition at line 481 of file serverstructs.h.
| void PWad::addChecksum | ( | const QByteArray & | hash, |
| const QCryptographicHash::Algorithm & | algorithm | ||
| ) |
Adds a checksum to the WAD.
| hash | - Hash resulting from hashing the WAD with the algorithm. |
| algorithm | - Algorithm used to produce the hash. |
Definition at line 524 of file serverstructs.cpp.
| const QList< Checksum > PWad::checksums | ( | ) | const |
List of checksums of the WAD.
Definition at line 519 of file serverstructs.cpp.
| bool PWad::isOptional | ( | ) | const |
Is this WAD required to join the server?
Definition at line 509 of file serverstructs.cpp.
| const QString & PWad::name | ( | ) | const |
File name of the WAD.
Definition at line 514 of file serverstructs.cpp.
| bool PWad::validFile | ( | const QString & | path | ) | const |
Verifies if a file has the same checksums as the PWad.
| path | - Path to the file. |
Definition at line 529 of file serverstructs.cpp.