otherinbox-capybara-webkit 0.12.0 → 0.12.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/GOALS +9 -0
- data/README.md +1 -1
- data/capybara-webkit.gemspec +1 -1
- data/lib/capybara/webkit.rb +11 -4
- data/lib/capybara/{driver/webkit → webkit}/browser.rb +27 -3
- data/lib/capybara/{driver/webkit → webkit}/connection.rb +45 -47
- data/lib/capybara/{driver/webkit → webkit}/cookie_jar.rb +1 -1
- data/lib/capybara/webkit/driver.rb +150 -0
- data/lib/capybara/webkit/errors.rb +10 -0
- data/lib/capybara/{driver/webkit → webkit}/node.rb +2 -2
- data/lib/capybara/{driver/webkit → webkit}/socket_debugger.rb +1 -1
- data/lib/capybara/{driver/webkit → webkit}/version.rb +1 -1
- data/lib/capybara_webkit_builder.rb +17 -3
- data/spec/browser_spec.rb +38 -25
- data/spec/connection_spec.rb +5 -5
- data/spec/cookie_jar_spec.rb +3 -3
- data/spec/driver_rendering_spec.rb +19 -26
- data/spec/driver_resize_window_spec.rb +3 -3
- data/spec/driver_spec.rb +907 -829
- data/spec/integration/driver_spec.rb +4 -3
- data/spec/spec_helper.rb +14 -6
- data/spec/support/app_runner.rb +91 -0
- data/src/Authenticate.cpp +18 -0
- data/src/Authenticate.h +12 -0
- data/src/Body.h +3 -5
- data/src/ClearCookies.cpp +3 -5
- data/src/ClearCookies.h +3 -5
- data/src/Command.cpp +4 -15
- data/src/Command.h +3 -14
- data/src/CommandFactory.cpp +10 -6
- data/src/CommandFactory.h +3 -2
- data/src/CommandParser.cpp +1 -1
- data/src/Connection.cpp +22 -11
- data/src/Connection.h +4 -2
- data/src/ConsoleMessages.cpp +2 -1
- data/src/ConsoleMessages.h +3 -5
- data/src/CurrentUrl.cpp +2 -1
- data/src/CurrentUrl.h +3 -5
- data/src/EnableLogging.cpp +10 -0
- data/src/EnableLogging.h +12 -0
- data/src/Evaluate.cpp +2 -1
- data/src/Evaluate.h +3 -5
- data/src/Execute.cpp +2 -1
- data/src/Execute.h +3 -5
- data/src/Find.cpp +3 -2
- data/src/Find.h +3 -5
- data/src/FrameFocus.cpp +3 -2
- data/src/FrameFocus.h +3 -4
- data/src/GetCookies.cpp +3 -4
- data/src/GetCookies.h +3 -5
- data/src/GetWindowHandle.cpp +11 -0
- data/src/GetWindowHandle.h +10 -0
- data/src/GetWindowHandles.cpp +20 -0
- data/src/GetWindowHandles.h +10 -0
- data/src/Header.cpp +2 -1
- data/src/Header.h +3 -5
- data/src/Headers.cpp +2 -1
- data/src/Headers.h +3 -5
- data/src/IgnoreSslErrors.cpp +4 -3
- data/src/IgnoreSslErrors.h +3 -5
- data/src/JavascriptInvocation.cpp +1 -1
- data/src/JavascriptInvocation.h +1 -1
- data/src/NetworkAccessManager.cpp +19 -1
- data/src/NetworkAccessManager.h +10 -0
- data/src/Node.cpp +6 -1
- data/src/Node.h +4 -5
- data/src/NullCommand.cpp +5 -2
- data/src/NullCommand.h +4 -3
- data/src/PageLoadingCommand.cpp +12 -7
- data/src/PageLoadingCommand.h +6 -9
- data/src/Render.cpp +2 -1
- data/src/Render.h +3 -5
- data/src/RequestedUrl.cpp +2 -1
- data/src/RequestedUrl.h +3 -5
- data/src/Reset.cpp +3 -17
- data/src/Reset.h +3 -8
- data/src/ResizeWindow.cpp +2 -1
- data/src/ResizeWindow.h +3 -5
- data/src/Server.cpp +2 -3
- data/src/Server.h +0 -2
- data/src/SetCookie.cpp +3 -4
- data/src/SetCookie.h +3 -5
- data/src/SetProxy.cpp +2 -1
- data/src/SetProxy.h +3 -5
- data/src/SetSkipImageLoading.cpp +3 -2
- data/src/SetSkipImageLoading.h +3 -5
- data/src/SocketCommand.cpp +21 -0
- data/src/SocketCommand.h +29 -0
- data/src/Source.cpp +2 -1
- data/src/Source.h +3 -4
- data/src/Status.cpp +2 -1
- data/src/Status.h +3 -5
- data/src/UnsupportedContentHandler.cpp +1 -1
- data/src/Url.cpp +2 -1
- data/src/Url.h +3 -5
- data/src/Visit.cpp +3 -2
- data/src/Visit.h +3 -5
- data/src/WebPage.cpp +86 -39
- data/src/WebPage.h +22 -8
- data/src/WebPageManager.cpp +117 -0
- data/src/WebPageManager.h +56 -0
- data/src/WindowFocus.cpp +32 -0
- data/src/WindowFocus.h +15 -0
- data/src/body.cpp +2 -1
- data/src/find_command.h +6 -2
- data/src/webkit_server.pro +14 -0
- data/templates/Command.cpp +2 -4
- data/templates/Command.h +3 -3
- metadata +29 -10
- data/lib/capybara/driver/webkit.rb +0 -135
data/src/NetworkAccessManager.h
CHANGED
@@ -10,10 +10,20 @@ class NetworkAccessManager : public QNetworkAccessManager {
|
|
10
10
|
NetworkAccessManager(QObject *parent = 0);
|
11
11
|
void addHeader(QString key, QString value);
|
12
12
|
void resetHeaders();
|
13
|
+
void setUserName(const QString &userName);
|
14
|
+
void setPassword(const QString &password);
|
13
15
|
|
14
16
|
protected:
|
15
17
|
QNetworkReply* createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest &req, QIODevice * outgoingData);
|
18
|
+
QString m_userName;
|
19
|
+
QString m_password;
|
16
20
|
|
17
21
|
private:
|
18
22
|
QHash<QString, QString> m_headers;
|
23
|
+
|
24
|
+
private slots:
|
25
|
+
void provideAuthentication(QNetworkReply *reply, QAuthenticator *authenticator);
|
26
|
+
|
27
|
+
signals:
|
28
|
+
void requestCreated(QNetworkReply *reply);
|
19
29
|
};
|
data/src/Node.cpp
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
#include "Node.h"
|
2
2
|
#include "WebPage.h"
|
3
|
+
#include "WebPageManager.h"
|
3
4
|
|
4
|
-
Node::Node(
|
5
|
+
Node::Node(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
5
6
|
}
|
6
7
|
|
7
8
|
void Node::start() {
|
@@ -12,3 +13,7 @@ void Node::start() {
|
|
12
13
|
emit finished(new Response(true, attributeValue));
|
13
14
|
}
|
14
15
|
|
16
|
+
QString Node::toString() const {
|
17
|
+
QStringList functionArguments(arguments());
|
18
|
+
return QString("Node.") + functionArguments.takeFirst();
|
19
|
+
}
|
data/src/Node.h
CHANGED
@@ -1,13 +1,12 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
#include <QStringList>
|
3
3
|
|
4
|
-
class
|
5
|
-
|
6
|
-
class Node : public Command {
|
4
|
+
class Node : public SocketCommand {
|
7
5
|
Q_OBJECT
|
8
6
|
|
9
7
|
public:
|
10
|
-
Node(
|
8
|
+
Node(WebPageManager *manager, QStringList &arguments, QObject *parent = 0);
|
11
9
|
virtual void start();
|
10
|
+
virtual QString toString() const;
|
12
11
|
};
|
13
12
|
|
data/src/NullCommand.cpp
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
#include "NullCommand.h"
|
2
2
|
#include "WebPage.h"
|
3
|
+
#include "WebPageManager.h"
|
3
4
|
|
4
|
-
NullCommand::NullCommand(
|
5
|
+
NullCommand::NullCommand(QString name, QObject *parent) : Command(parent) {
|
6
|
+
m_name = name;
|
7
|
+
}
|
5
8
|
|
6
9
|
void NullCommand::start() {
|
7
|
-
QString failure = QString("[Capybara WebKit] Unknown command: ") +
|
10
|
+
QString failure = QString("[Capybara WebKit] Unknown command: ") + m_name + "\n";
|
8
11
|
emit finished(new Response(false, failure));
|
9
12
|
}
|
10
13
|
|
data/src/NullCommand.h
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
#include "Command.h"
|
2
2
|
|
3
|
-
class WebPage;
|
4
|
-
|
5
3
|
class NullCommand : public Command {
|
6
4
|
Q_OBJECT
|
7
5
|
|
8
6
|
public:
|
9
|
-
NullCommand(
|
7
|
+
NullCommand(QString name, QObject *parent = 0);
|
10
8
|
virtual void start();
|
9
|
+
|
10
|
+
private:
|
11
|
+
QString m_name;
|
11
12
|
};
|
data/src/PageLoadingCommand.cpp
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
#include "PageLoadingCommand.h"
|
2
|
-
#include "
|
2
|
+
#include "SocketCommand.h"
|
3
3
|
#include "WebPage.h"
|
4
|
+
#include "WebPageManager.h"
|
4
5
|
|
5
|
-
PageLoadingCommand::PageLoadingCommand(Command *command,
|
6
|
-
|
6
|
+
PageLoadingCommand::PageLoadingCommand(Command *command, WebPageManager *manager, QObject *parent) : Command(parent) {
|
7
|
+
m_manager = manager;
|
7
8
|
m_command = command;
|
8
9
|
m_pageLoadingFromCommand = false;
|
9
10
|
m_pageSuccess = true;
|
10
11
|
m_pendingResponse = NULL;
|
11
|
-
connect(
|
12
|
-
connect(
|
12
|
+
connect(m_manager, SIGNAL(loadStarted()), this, SLOT(pageLoadingFromCommand()));
|
13
|
+
connect(m_manager, SIGNAL(pageFinished(bool)), this, SLOT(pendingLoadFinished(bool)));
|
13
14
|
}
|
14
15
|
|
15
16
|
void PageLoadingCommand::start() {
|
17
|
+
m_manager->logger() << "Started" << m_command->toString();
|
16
18
|
connect(m_command, SIGNAL(finished(Response *)), this, SLOT(commandFinished(Response *)));
|
17
19
|
m_command->start();
|
18
20
|
};
|
@@ -22,10 +24,11 @@ void PageLoadingCommand::pendingLoadFinished(bool success) {
|
|
22
24
|
if (m_pageLoadingFromCommand) {
|
23
25
|
m_pageLoadingFromCommand = false;
|
24
26
|
if (m_pendingResponse) {
|
27
|
+
m_manager->logger() << "Page load from command finished";
|
25
28
|
if (m_pageSuccess) {
|
26
29
|
emit finished(m_pendingResponse);
|
27
30
|
} else {
|
28
|
-
QString message =
|
31
|
+
QString message = m_manager->currentPage()->failureString();
|
29
32
|
emit finished(new Response(false, message));
|
30
33
|
}
|
31
34
|
}
|
@@ -33,11 +36,13 @@ void PageLoadingCommand::pendingLoadFinished(bool success) {
|
|
33
36
|
}
|
34
37
|
|
35
38
|
void PageLoadingCommand::pageLoadingFromCommand() {
|
39
|
+
m_manager->logger() << m_command->toString() << "started page load";
|
36
40
|
m_pageLoadingFromCommand = true;
|
37
41
|
}
|
38
42
|
|
39
43
|
void PageLoadingCommand::commandFinished(Response *response) {
|
40
|
-
disconnect(
|
44
|
+
disconnect(m_manager, SIGNAL(loadStarted()), this, SLOT(pageLoadingFromCommand()));
|
45
|
+
m_manager->logger() << "Finished" << m_command->toString();
|
41
46
|
m_command->deleteLater();
|
42
47
|
if (m_pageLoadingFromCommand)
|
43
48
|
m_pendingResponse = response;
|
data/src/PageLoadingCommand.h
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
#include <QObject>
|
2
2
|
#include <QStringList>
|
3
|
+
#include "Command.h"
|
3
4
|
|
4
|
-
class Command;
|
5
5
|
class Response;
|
6
|
-
class
|
6
|
+
class WebPageManager;
|
7
7
|
|
8
8
|
/*
|
9
9
|
* Decorates a Command by deferring the finished() signal until any pending
|
@@ -15,23 +15,20 @@ class WebPage;
|
|
15
15
|
* If a pending page load fails, the command's response will be discarded and a
|
16
16
|
* failure response will be emitted instead.
|
17
17
|
*/
|
18
|
-
class PageLoadingCommand : public
|
18
|
+
class PageLoadingCommand : public Command {
|
19
19
|
Q_OBJECT
|
20
20
|
|
21
21
|
public:
|
22
|
-
PageLoadingCommand(Command *command,
|
23
|
-
void start();
|
22
|
+
PageLoadingCommand(Command *command, WebPageManager *page, QObject *parent = 0);
|
23
|
+
virtual void start();
|
24
24
|
|
25
25
|
public slots:
|
26
26
|
void pageLoadingFromCommand();
|
27
27
|
void pendingLoadFinished(bool success);
|
28
28
|
void commandFinished(Response *response);
|
29
29
|
|
30
|
-
signals:
|
31
|
-
void finished(Response *response);
|
32
|
-
|
33
30
|
private:
|
34
|
-
|
31
|
+
WebPageManager *m_manager;
|
35
32
|
Command *m_command;
|
36
33
|
Response *m_pendingResponse;
|
37
34
|
bool m_pageSuccess;
|
data/src/Render.cpp
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
#include "Render.h"
|
2
2
|
#include "WebPage.h"
|
3
|
+
#include "WebPageManager.h"
|
3
4
|
|
4
|
-
Render::Render(
|
5
|
+
Render::Render(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
5
6
|
}
|
6
7
|
|
7
8
|
void Render::start() {
|
data/src/Render.h
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
#include <QStringList>
|
3
3
|
|
4
|
-
class
|
5
|
-
|
6
|
-
class Render : public Command {
|
4
|
+
class Render : public SocketCommand {
|
7
5
|
Q_OBJECT
|
8
6
|
|
9
7
|
public:
|
10
|
-
Render(
|
8
|
+
Render(WebPageManager *page, QStringList &arguments, QObject *parent = 0);
|
11
9
|
virtual void start();
|
12
10
|
};
|
data/src/RequestedUrl.cpp
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
#include "RequestedUrl.h"
|
2
2
|
#include "WebPage.h"
|
3
|
+
#include "WebPageManager.h"
|
3
4
|
|
4
|
-
RequestedUrl::RequestedUrl(
|
5
|
+
RequestedUrl::RequestedUrl(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
5
6
|
}
|
6
7
|
|
7
8
|
void RequestedUrl::start() {
|
data/src/RequestedUrl.h
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
|
3
|
-
class
|
4
|
-
|
5
|
-
class RequestedUrl : public Command {
|
3
|
+
class RequestedUrl : public SocketCommand {
|
6
4
|
Q_OBJECT
|
7
5
|
|
8
6
|
public:
|
9
|
-
RequestedUrl(
|
7
|
+
RequestedUrl(WebPageManager *, QStringList &arguments, QObject *parent = 0);
|
10
8
|
virtual void start();
|
11
9
|
};
|
12
10
|
|
data/src/Reset.cpp
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
#include "Reset.h"
|
2
2
|
#include "WebPage.h"
|
3
|
-
#include "
|
4
|
-
#include "NetworkCookieJar.h"
|
3
|
+
#include "WebPageManager.h"
|
5
4
|
|
6
|
-
Reset::Reset(
|
5
|
+
Reset::Reset(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
7
6
|
}
|
8
7
|
|
9
8
|
void Reset::start() {
|
10
9
|
page()->triggerAction(QWebPage::Stop);
|
11
10
|
|
12
|
-
|
13
|
-
networkAccessManager->setCookieJar(new NetworkCookieJar());
|
14
|
-
networkAccessManager->resetHeaders();
|
11
|
+
manager()->reset();
|
15
12
|
|
16
|
-
page()->setUserAgent(NULL);
|
17
|
-
page()->resetResponseHeaders();
|
18
|
-
page()->resetConsoleMessages();
|
19
|
-
page()->resetWindowSize();
|
20
|
-
resetHistory();
|
21
13
|
emit finished(new Response(true));
|
22
14
|
}
|
23
15
|
|
24
|
-
void Reset::resetHistory() {
|
25
|
-
// Clearing the history preserves the current history item, so set it to blank first.
|
26
|
-
page()->currentFrame()->setUrl(QUrl("about:blank"));
|
27
|
-
page()->history()->clear();
|
28
|
-
}
|
29
|
-
|
data/src/Reset.h
CHANGED
@@ -1,15 +1,10 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
|
3
|
-
class
|
4
|
-
|
5
|
-
class Reset : public Command {
|
3
|
+
class Reset : public SocketCommand {
|
6
4
|
Q_OBJECT
|
7
5
|
|
8
6
|
public:
|
9
|
-
Reset(
|
7
|
+
Reset(WebPageManager *, QStringList &arguments, QObject *parent = 0);
|
10
8
|
virtual void start();
|
11
|
-
|
12
|
-
private:
|
13
|
-
void resetHistory();
|
14
9
|
};
|
15
10
|
|
data/src/ResizeWindow.cpp
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
#include "ResizeWindow.h"
|
2
2
|
#include "WebPage.h"
|
3
|
+
#include "WebPageManager.h"
|
3
4
|
|
4
|
-
ResizeWindow::ResizeWindow(
|
5
|
+
ResizeWindow::ResizeWindow(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
5
6
|
}
|
6
7
|
|
7
8
|
void ResizeWindow::start() {
|
data/src/ResizeWindow.h
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
|
3
|
-
class
|
4
|
-
|
5
|
-
class ResizeWindow : public Command {
|
3
|
+
class ResizeWindow : public SocketCommand {
|
6
4
|
Q_OBJECT
|
7
5
|
|
8
6
|
public:
|
9
|
-
ResizeWindow(
|
7
|
+
ResizeWindow(WebPageManager *, QStringList &arguments, QObject *parent = 0);
|
10
8
|
virtual void start();
|
11
9
|
};
|
12
10
|
|
data/src/Server.cpp
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
#include "Server.h"
|
2
|
-
#include "WebPage.h"
|
3
2
|
#include "Connection.h"
|
3
|
+
#include "WebPageManager.h"
|
4
4
|
|
5
5
|
#include <QTcpServer>
|
6
6
|
|
7
7
|
Server::Server(QObject *parent) : QObject(parent) {
|
8
8
|
m_tcp_server = new QTcpServer(this);
|
9
|
-
m_page = new WebPage(this);
|
10
9
|
}
|
11
10
|
|
12
11
|
bool Server::start() {
|
@@ -20,5 +19,5 @@ quint16 Server::server_port() const {
|
|
20
19
|
|
21
20
|
void Server::handleConnection() {
|
22
21
|
QTcpSocket *socket = m_tcp_server->nextPendingConnection();
|
23
|
-
new Connection(socket,
|
22
|
+
new Connection(socket, new WebPageManager(this), this);
|
24
23
|
}
|
data/src/Server.h
CHANGED
data/src/SetCookie.cpp
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
#include "SetCookie.h"
|
2
2
|
#include "WebPage.h"
|
3
|
+
#include "WebPageManager.h"
|
3
4
|
#include "NetworkCookieJar.h"
|
4
5
|
#include <QNetworkCookie>
|
5
6
|
|
6
|
-
SetCookie::SetCookie(
|
7
|
+
SetCookie::SetCookie(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {}
|
7
8
|
|
8
9
|
void SetCookie::start()
|
9
10
|
{
|
10
11
|
QList<QNetworkCookie> cookies = QNetworkCookie::parseCookies(arguments()[0].toAscii());
|
11
|
-
NetworkCookieJar *jar =
|
12
|
-
->networkAccessManager()
|
13
|
-
->cookieJar());
|
12
|
+
NetworkCookieJar *jar = manager()->cookieJar();
|
14
13
|
jar->overwriteCookies(cookies);
|
15
14
|
emit finished(new Response(true));
|
16
15
|
}
|
data/src/SetCookie.h
CHANGED
@@ -1,11 +1,9 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
|
3
|
-
class
|
4
|
-
|
5
|
-
class SetCookie : public Command {
|
3
|
+
class SetCookie : public SocketCommand {
|
6
4
|
Q_OBJECT;
|
7
5
|
|
8
6
|
public:
|
9
|
-
SetCookie(
|
7
|
+
SetCookie(WebPageManager *, QStringList &arguments, QObject *parent = 0);
|
10
8
|
virtual void start();
|
11
9
|
};
|
data/src/SetProxy.cpp
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
#include "SetProxy.h"
|
2
2
|
#include "WebPage.h"
|
3
|
+
#include "WebPageManager.h"
|
3
4
|
#include <QNetworkAccessManager>
|
4
5
|
#include <QNetworkProxy>
|
5
6
|
|
6
|
-
SetProxy::SetProxy(
|
7
|
+
SetProxy::SetProxy(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {}
|
7
8
|
|
8
9
|
void SetProxy::start()
|
9
10
|
{
|
data/src/SetProxy.h
CHANGED
@@ -1,11 +1,9 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
|
3
|
-
class
|
4
|
-
|
5
|
-
class SetProxy : public Command {
|
3
|
+
class SetProxy : public SocketCommand {
|
6
4
|
Q_OBJECT;
|
7
5
|
|
8
6
|
public:
|
9
|
-
SetProxy(
|
7
|
+
SetProxy(WebPageManager *, QStringList &arguments, QObject *parent = 0);
|
10
8
|
virtual void start();
|
11
9
|
};
|
data/src/SetSkipImageLoading.cpp
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
#include "SetSkipImageLoading.h"
|
2
2
|
#include "WebPage.h"
|
3
|
+
#include "WebPageManager.h"
|
3
4
|
|
4
|
-
SetSkipImageLoading::SetSkipImageLoading(
|
5
|
-
|
5
|
+
SetSkipImageLoading::SetSkipImageLoading(WebPageManager *manager, QStringList &arguments, QObject *parent) :
|
6
|
+
SocketCommand(manager, arguments, parent) {
|
6
7
|
}
|
7
8
|
|
8
9
|
void SetSkipImageLoading::start() {
|
data/src/SetSkipImageLoading.h
CHANGED
@@ -1,11 +1,9 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
|
3
|
-
class
|
4
|
-
|
5
|
-
class SetSkipImageLoading : public Command {
|
3
|
+
class SetSkipImageLoading : public SocketCommand {
|
6
4
|
Q_OBJECT
|
7
5
|
|
8
6
|
public:
|
9
|
-
SetSkipImageLoading(
|
7
|
+
SetSkipImageLoading(WebPageManager *manager, QStringList &arguments, QObject *parent = 0);
|
10
8
|
virtual void start();
|
11
9
|
};
|