Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (16 sloc) 0.49 kb
#include "SetTimeout.h"
#include "WebPageManager.h"
#include "ErrorMessage.h"
SetTimeout::SetTimeout(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
}
void SetTimeout::start() {
QString timeoutString = arguments()[0];
bool ok;
int timeout = timeoutString.toInt(&ok);
if (ok) {
manager()->setTimeout(timeout);
finish(true);
} else {
finish(false, new ErrorMessage("Invalid value for timeout"));
}
}
Jump to Line
Something went wrong with that request. Please try again.