2#include <NDEVR/ItemDownloader.h>
A request for data or information from a network.
void timerEvent(QTimerEvent *ev)
Handles the timer event; triggers the timeout action when the timer fires.
HandleMethod m_method
The method used to handle a timeout (Abort or Close).
void refresh()
Resets the timeout timer, restarting the countdown.
HandleMethod
Specifies how to handle a timed-out network request.
@ Abort
Abort the request immediately.
@ Close
Close the request gracefully.
static void set(NetworkRequest *reply, const int timeout, HandleMethod method=Abort)
Convenience method to attach a timeout to a network request.
int m_timeout
The timeout duration in milliseconds.
QBasicTimer m_timer
The basic timer used to track the timeout interval.
ReplyTimeout(NetworkRequest *reply, const int timeout, HandleMethod method=Abort)
Constructs a timeout watcher for the given network request.
The primary namespace for the NDEVR SDK.