#include <Torrent.h> [code]
Collaboration diagram for Protocols::BitTorrent::Torrents::Torrent::FileInfo:

It provides value semantics (objects copying allowed), however object creation is not publicly possible (there is no need for that and parsing + validation is done by TorrentParser).
Definition at line 112 of file Torrent.h.
Public Types | |
| typedef FixedSizeByteArray< 32 > | Checksum |
| 32-byte MD5 hash for storing file checksum. | |
Public Member Functions | |
| FileInfo (const FileInfo &) | |
| Copy constructor. | |
| FileInfo & | operator= (const FileInfo &) |
| Assignment operator. | |
| bool | operator== (const FileInfo &) const |
| FileInfo equality comparison. | |
| bool | operator!= (const FileInfo &) const |
| FileInfo non-equality comparison. | |
| ~FileInfo () | |
| Destructor. | |
| void | swap (FileInfo &other) |
| Swap the contents of this object with the other object. | |
| QString | path () const |
| Returns complete file path including directories. | |
| qint64 | length () const |
| Returns file length. | |
| Checksum | checksum () const |
| Returns file checksum. | |
Private Member Functions | |
| FileInfo () | |
| Default constructor. | |
Private Attributes | |
| QString | filePath |
| Complete file path. | |
| qint64 | fileLength |
| File length in bytes. | |
| Checksum | fileChecksum |
| File checksum. | |
Friends | |
| class | TorrentParser |
|
|
32-byte MD5 hash for storing file checksum.
|
|
|
Copy constructor.
Definition at line 50 of file Torrent.cpp. |
|
|
Destructor. Destroys a FileInfo object. Definition at line 40 of file Torrent.cpp. |
|
|
Default constructor. Constructs an empty FileInfo object. Definition at line 31 of file Torrent.cpp. |
|
|
Returns file checksum.
|
|
|
Returns file length.
|
|
|
FileInfo non-equality comparison. Returns true if this FileInfo object is not equal to the other object. Definition at line 85 of file Torrent.cpp. |
|
|
Assignment operator.
Definition at line 62 of file Torrent.cpp. |
|
|
FileInfo equality comparison. Returns true if this FileInfo object is equal to the other object. Definition at line 74 of file Torrent.cpp. |
|
|
Returns complete file path including directories.
|
|
|
Swap the contents of this object with the other object.
Definition at line 96 of file Torrent.cpp. |
|
|
|
|
|
File checksum.
|
|
|
File length in bytes.
|
|
|
Complete file path.
|