Sha256: 835d1935bed0fc27011c6c1e46246fc2a3163b72a22c606b1d86d155c4d6c2ed
Contents?: true
Size: 490 Bytes
Versions: 26
Compression:
Stored size: 490 Bytes
Contents
#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")); } }
Version data entries
26 entries across 26 versions & 2 rubygems