Sha256: e438f8d9ad294d5db302e3aa9b7d56b5e1cb6b8d313a4705c42f964271e8c2a7
Contents?: true
Size: 497 Bytes
Versions: 3
Compression:
Stored size: 497 Bytes
Contents
#include "SetTimeout.h" #include "WebPageManager.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); emit finished(new Response(true)); } else { emit finished(new Response(false, QString("Invalid value for timeout"))); } }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
capybara-webkit-0.13.2 | src/SetTimeout.cpp |
capybara-webkit-0.13.1 | src/SetTimeout.cpp |
capybara-webkit-0.13.0 | src/SetTimeout.cpp |