mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 15:37:23 +00:00
18 lines
346 B
C++
18 lines
346 B
C++
// from here http://codereview.stackexchange.com/questions/30031/qnetworkreply-network-reply-timeout-helper
|
|
// no license provided
|
|
|
|
#include <QNetworkReply>
|
|
#include <QObject>
|
|
|
|
|
|
class QReplyTimeout : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit QReplyTimeout(QNetworkReply *reply, const int timeout);
|
|
|
|
public slots:
|
|
void timeout();
|
|
};
|