Sha256: 61a13f8b9393a14158f4e49b280d9e5ea44ff817c57664b917098c1b317ff342

Contents?: true

Size: 925 Bytes

Versions: 33

Compression:

Stored size: 925 Bytes

Contents

#include <QObject>
#include <QStringList>
#include "Command.h"

class Response;
class WebPageManager;

/*
 * Decorates a Command by deferring the finished() signal until any pending
 * page loads are complete.
 *
 * If a Command starts a page load, no signal will be emitted until the page
 * load is finished.
 *
 * If a pending page load fails, the command's response will be discarded and a
 * failure response will be emitted instead.
 */
class PageLoadingCommand : public Command {
  Q_OBJECT

  public:
    PageLoadingCommand(Command *command, WebPageManager *page, QObject *parent = 0);
    virtual void start();

  public slots:
    void pageLoadingFromCommand();
    void pendingLoadFinished(bool success);
    void commandFinished(Response *response);

  private:
    WebPageManager *m_manager;
    Command *m_command;
    Response *m_pendingResponse;
    bool m_pageSuccess;
    bool m_pageLoadingFromCommand;
};

Version data entries

33 entries across 33 versions & 3 rubygems

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