|
|
| AssetRequest (const std::string &url, std::string *data, RichPresence *rpc) |
| |
| | HTTPRequest (int priority=1) |
| | Creates a HTTP(S) request that will have a raw string as result. More...
|
| |
| | HTTPRequest (const std::string &filename, int priority=1) |
| | This constructor configures this request to save the data in a file. More...
|
| |
|
| HTTPRequest (const char *const filename, int priority=1) |
| | Char * needs a separate constructor, otherwise it will be considered to be the no-filename constructor (char* -> bool).
|
| |
|
virtual bool | isAllowedToAdd () const OVERRIDE |
| | Checks the request if it has enough (correct) information to be executed (and thus allowed to add to the queue).
|
| |
| void | setApiURL (const std::string &url, const std::string &action) |
| | A handy shortcut that appends the given path to the URL of the mutiplayer server. More...
|
| |
| void | setAddonsURL (const std::string &path) |
| | A handy shortcut that appends the given path to the URL of the addons server. More...
|
| |
|
virtual bool | hadDownloadError () const |
| | Returns true if there was an error downloading the file.
|
| |
|
void | setDownloadAssetsRequest (bool val) |
| |
|
const char * | getDownloadErrorMessage () const |
| | Returns the error message if an error has occurred.
|
| |
| const std::string & | getData () const |
| | Returns the downloaded string. More...
|
| |
|
void | addParameter (const std::string &name, const std::string &value) |
| | Sets a parameter to 'value' (std::string).
|
| |
|
void | addParameter (const std::string &name, const irr::core::stringw &value) |
| | Sets a parameter to 'value' (stringw).
|
| |
|
template<typename T > |
| void | addParameter (const std::string &name, const T &value) |
| | Sets a parameter to 'value' (arbitrary types).
|
| |
|
float | getProgress () const |
| | Returns the current progress.
|
| |
|
void | setProgress (float f) |
| | Sets the current progress.
|
| |
|
const std::string & | getURL () const |
| |
|
void | setURL (const std::string &url) |
| | Sets the URL for this request.
|
| |
|
const std::string & | getFileName () const |
| |
|
double | getTotalSize () const |
| |
|
void | setTotalSize (double d) |
| |
| | Request (int priority, int type) |
| | Creates a request that can be handled by the RequestManager. More...
|
| |
| void | execute () |
| | Executes the request. More...
|
| |
| void | executeNow () |
| | Executes the request now, i.e. More...
|
| |
|
void | queue () |
| | Inserts this request into the RequestManager's queue for executing.
|
| |
|
int | getType () const |
| | Returns the type of the request.
|
| |
|
int | getPriority () const |
| | Returns the priority of this request.
|
| |
|
void | cancel () |
| | Signals that this request should be canceled.
|
| |
|
bool | isCancelled () const |
| | Returns if this request is to be canceled.
|
| |
|
bool | isAbortable () const |
| | Returns if this request can be aborted.
|
| |
|
void | setAbortable (bool b) |
| | Sets if this request is abortable or not.
|
| |
|
void | setBusy () |
| | Sets the request state to busy.
|
| |
|
void | setExecuted () |
| | Sets the request to be completed.
|
| |
|
void | setDone () |
| | Should only be called by the manager.
|
| |
|
bool | isDone () const |
| | Returns if this request is done.
|
| |
|
bool | isPreparing () const |
| | Returns if this request is being prepared.
|
| |
|
bool | isBusy () const |
| | Returns if this request is busy.
|
| |
| bool | hasBeenExecuted () const |
| | Checks if the request has completed or done (i.e. More...
|
| |