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

Version Path
capybara-webkit-1.15.1 src/SetTimeout.cpp
capybara-webkit-1.15.0 src/SetTimeout.cpp
capybara-webkit-1.14.0 src/SetTimeout.cpp
capybara-webkit-1.13.0 src/SetTimeout.cpp
capybara-webkit-1.12.0 src/SetTimeout.cpp
capybara-webkit-1.11.1 src/SetTimeout.cpp
capybara-webkit-1.11.0 src/SetTimeout.cpp
capybara-webkit-1.10.1 src/SetTimeout.cpp
capybara-webkit-1.10.0 src/SetTimeout.cpp
capybara-webkit-1.9.0 src/SetTimeout.cpp
capybara-webkit-1.8.0 src/SetTimeout.cpp
capybara-webkit-1.7.1 src/SetTimeout.cpp
capybara-webkit-1.7.0 src/SetTimeout.cpp
capybara-webkit-1.6.0 src/SetTimeout.cpp
capybara-webkit-1.5.2 src/SetTimeout.cpp
capybara-webkit-1.5.1 src/SetTimeout.cpp
capybara-webkit-1.5.0 src/SetTimeout.cpp
capybara-webkit-1.4.1 src/SetTimeout.cpp
capybara-webkit-1.4.0 src/SetTimeout.cpp
capybara-webkit-1.3.1 src/SetTimeout.cpp