#include <TrackerRequest.h> [code]
This class is used to store all needed tracker request arguments. It provides value semantics (objects copying is allowed) and implicit data sharing.
Stored tracker request arguments are made according to this specification: http://wiki.theory.org/BitTorrentSpecification#Tracker_Request_Parameters . It stores also tracker announce URL, because it's related to the TrackerRequest, so you need to create a separate tracker request for each announce URL (if needed).
Definition at line 64 of file TrackerRequest.h.
Public Types | |
| enum | Event { Empty = 0, Started, Completed, Stopped } |
| Specifies the reason for the peer that is contacting the tracker. More... | |
Public Member Functions | |
| TrackerRequest (const TrackerRequest &) | |
| Copy constructor. | |
| TrackerRequest & | operator= (const TrackerRequest &) |
| Assignment operator. | |
| bool | operator== (const TrackerRequest &) const |
| Equality comparison. | |
| bool | operator!= (const TrackerRequest &) const |
| Inequality comparison. | |
| TrackerRequest (const Uri &announceUrl, const PeerInfo &peerInfo, const Torrent::InfoHash &infoHash, quint64 uploaded, quint64 downloaded, quint64 left, bool compact, Event event=Empty, uint numWant=0, QByteArray key=QByteArray(), QByteArray trackerId=QByteArray()) | |
| ~TrackerRequest () | |
| Destructor. | |
| Uri | announceUrl () const |
| PeerInfo | peerInfo () const |
| Torrent::InfoHash | infoHash () const |
| quint64 | uploaded () const |
| quint64 | downloaded () const |
| quint64 | left () const |
| bool | compact () const |
| Event | event () const |
| uint | numWant () const |
| QByteArray | key () const |
| QByteArray | trackerId () const |
Private Attributes | |
| QSharedDataPointer< PrivateData > | d |
| Private data with implicit sharing. | |
Classes | |
| struct | PrivateData |
| Stores the private members of TrackerRequest using implicit sharing. More... | |
|
|
Specifies the reason for the peer that is contacting the tracker.
Definition at line 71 of file TrackerRequest.h. |
|
|
Copy constructor.
Definition at line 88 of file TrackerRequest.cpp. |
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
Destructor. Destroys a TrackerRequest object. Definition at line 78 of file TrackerRequest.cpp. |
|
|
Definition at line 125 of file TrackerRequest.h. |
|
|
Definition at line 149 of file TrackerRequest.h. |
|
|
Definition at line 141 of file TrackerRequest.h. |
|
|
Definition at line 153 of file TrackerRequest.h. |
|
|
Definition at line 133 of file TrackerRequest.h. |
|
|
Definition at line 161 of file TrackerRequest.h. |
|
|
Definition at line 145 of file TrackerRequest.h. |
|
|
Definition at line 157 of file TrackerRequest.h. |
|
|
Inequality comparison.
Definition at line 129 of file TrackerRequest.cpp. |
|
|
Assignment operator.
Definition at line 98 of file TrackerRequest.cpp. |
|
|
Equality comparison.
Definition at line 109 of file TrackerRequest.cpp. |
|
|
Definition at line 129 of file TrackerRequest.h. |
|
|
Definition at line 165 of file TrackerRequest.h. |
|
|
Definition at line 137 of file TrackerRequest.h. |
|
|
Private data with implicit sharing.
Definition at line 121 of file TrackerRequest.h. |