#include <TrackerRequestUrlCreator.h> [code]
This class (it's createRequestUrl function) is used to create a request URL that could be then used in a HTTP request to a tracker. See createRequestUrl() for more info. Instance creation and copying is not allowed.
Definition at line 40 of file TrackerRequestUrlCreator.h.
Static Public Member Functions | |
| static Uri | createRequestUrl (const TrackerRequest &) |
| Creates and returns a request URL from the selected trackerRequest. | |
Private Member Functions | |
| TrackerRequestUrlCreator () | |
| ~TrackerRequestUrlCreator () | |
| TrackerRequestUrlCreator (const TrackerRequestUrlCreator &) | |
| TrackerRequestUrlCreator & | operator= (const TrackerRequestUrlCreator &) |
Static Private Member Functions | |
| static QByteArray | eventToString (TrackerRequest::Event event) |
Static Private Attributes | |
| static const char * | ParameterInfoHashName = "info_hash" |
| static const char * | ParameterPeerIdName = "peer_id" |
| static const char * | ParameterPortName = "port" |
| static const char * | ParameterUploadedName = "uploaded" |
| static const char * | ParameterDownloadedName = "downloaded" |
| static const char * | ParameterLeftName = "left" |
| static const char * | ParameterCompactName = "compact" |
| static const char * | ParameterEventName = "event" |
| static const char * | ParameterIpName = "ip" |
| static const char * | ParameterNumWantName = "numwant" |
| static const char * | ParameterKeyName = "key" |
| static const char * | ParameterTrackerIdName = "trackerid" |
| static const char * | CompactTrueValueString = "1" |
| 'True' value textual repr. | |
| static const char * | CompactFalseValueString = "0" |
| 'False' value textual repr. | |
|
|
|
|
|
|
|
|
|
|
|
Creates and returns a request URL from the selected trackerRequest.
Because the specification doesn't mention the format of the 'compact' and the 'key' parameter, 'compact' will be either '1' (true) or '0' (false) and the 'key' will be a string.
Definition at line 53 of file TrackerRequestUrlCreator.cpp. |
|
|
Definition at line 108 of file TrackerRequestUrlCreator.cpp. |
|
|
|
|
|
'False' value textual repr.
Definition at line 64 of file TrackerRequestUrlCreator.h. |
|
|
'True' value textual repr.
Definition at line 63 of file TrackerRequestUrlCreator.h. |
|
|
Definition at line 56 of file TrackerRequestUrlCreator.h. |
|
|
Definition at line 54 of file TrackerRequestUrlCreator.h. |
|
|
Definition at line 57 of file TrackerRequestUrlCreator.h. |
|
|
Definition at line 50 of file TrackerRequestUrlCreator.h. |
|
|
Definition at line 58 of file TrackerRequestUrlCreator.h. |
|
|
Definition at line 60 of file TrackerRequestUrlCreator.h. |
|
|
Definition at line 55 of file TrackerRequestUrlCreator.h. |
|
|
Definition at line 59 of file TrackerRequestUrlCreator.h. |
|
|
Definition at line 51 of file TrackerRequestUrlCreator.h. |
|
|
Definition at line 52 of file TrackerRequestUrlCreator.h. |
|
|
Definition at line 61 of file TrackerRequestUrlCreator.h. |
|
|
Definition at line 53 of file TrackerRequestUrlCreator.h. |