Handles timing out certain operations such as downloads.
More...
|
| 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).
|
|
int | m_timeout |
| | The timeout duration in milliseconds.
|
|
QBasicTimer | m_timer |
| | The basic timer used to track the timeout interval.
|
Handles timing out certain operations such as downloads.
Definition at line 10 of file ReplyTimeout.h.
◆ HandleMethod
Specifies how to handle a timed-out network request.
| Enumerator |
|---|
| Abort | Abort the request immediately.
|
| Close | Close the request gracefully.
|
Definition at line 16 of file ReplyTimeout.h.
◆ ReplyTimeout()
Constructs a timeout watcher for the given network request.
- Parameters
-
| [in] | reply | The network request to monitor. |
| [in] | timeout | The timeout duration in milliseconds. |
| [in] | method | How to handle the timeout (Abort or Close). |
References Abort.
◆ set()
Convenience method to attach a timeout to a network request.
- Parameters
-
| [in] | reply | The network request to monitor. |
| [in] | timeout | The timeout duration in milliseconds. |
| [in] | method | How to handle the timeout. |
References Abort.
◆ timerEvent()
| void ReplyTimeout::timerEvent |
( |
QTimerEvent * | ev | ) |
|
|
protected |
Handles the timer event; triggers the timeout action when the timer fires.
- Parameters
-
The documentation for this class was generated from the following file: