API Documentation
Loading...
Searching...
No Matches
ReplyTimeout.h
Go to the documentation of this file.
1#pragma once
2#include <NDEVR/ItemDownloader.h>
3#include <QBasicTimer>
4#include <QTimerEvent>
5namespace NDEVR
6{
7 /**--------------------------------------------------------------------------------------------------
8 \brief Handles timing out certain operations such as downloads.
9 *-----------------------------------------------------------------------------------------------**/
10 class ReplyTimeout : public QObject
11 {
12 public:
14 ReplyTimeout(NetworkRequest* reply, const int timeout, HandleMethod method = Abort);
15 void refresh(const int timeout);
16 static void set(NetworkRequest* reply, const int timeout, HandleMethod method = Abort);
17 protected:
18 void timerEvent(QTimerEvent* ev);
19 QBasicTimer m_timer;
21 };
22}
Definition ItemDownloader.h:47
Handles timing out certain operations such as downloads.
Definition ReplyTimeout.h:11
void timerEvent(QTimerEvent *ev)
QBasicTimer m_timer
Definition ReplyTimeout.h:19
static void set(NetworkRequest *reply, const int timeout, HandleMethod method=Abort)
HandleMethod
Definition ReplyTimeout.h:13
@ Abort
Definition ReplyTimeout.h:13
@ Close
Definition ReplyTimeout.h:13
ReplyTimeout(NetworkRequest *reply, const int timeout, HandleMethod method=Abort)
void refresh(const int timeout)
HandleMethod m_method
Definition ReplyTimeout.h:20
Definition ACIColor.h:37