capybara-webkit 0.12.1 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +2 -1
- data/GOALS +9 -0
- data/Gemfile.lock +15 -12
- data/LICENSE +1 -1
- data/NEWS.md +18 -0
- data/README.md +81 -2
- data/capybara-webkit.gemspec +1 -1
- data/lib/capybara/webkit.rb +11 -6
- data/lib/capybara/{driver/webkit → webkit}/browser.rb +90 -4
- data/lib/capybara/{driver/webkit → webkit}/connection.rb +48 -47
- data/lib/capybara/{driver/webkit → webkit}/cookie_jar.rb +1 -1
- data/lib/capybara/webkit/driver.rb +186 -0
- data/lib/capybara/webkit/errors.rb +10 -0
- data/lib/capybara/{driver/webkit → webkit}/node.rb +12 -4
- data/lib/capybara/{driver/webkit → webkit}/socket_debugger.rb +4 -1
- data/lib/capybara/{driver/webkit → webkit}/version.rb +1 -1
- data/lib/capybara_webkit_builder.rb +17 -3
- data/spec/browser_spec.rb +95 -7
- data/spec/connection_spec.rb +16 -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 +1200 -822
- data/spec/integration/driver_spec.rb +4 -3
- data/spec/selenium_compatibility_spec.rb +49 -0
- data/spec/spec_helper.rb +14 -6
- data/spec/support/app_runner.rb +94 -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/ClearPromptText.cpp +11 -0
- data/src/ClearPromptText.h +9 -0
- data/src/Command.cpp +4 -15
- data/src/Command.h +3 -14
- data/src/CommandFactory.cpp +20 -6
- data/src/CommandFactory.h +3 -2
- data/src/CommandParser.cpp +1 -1
- data/src/Connection.cpp +22 -21
- data/src/Connection.h +5 -6
- data/src/ConsoleMessages.cpp +2 -1
- data/src/ConsoleMessages.h +3 -5
- data/src/CurrentUrl.cpp +9 -48
- data/src/CurrentUrl.h +8 -8
- 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/GetTimeout.cpp +9 -0
- data/src/GetTimeout.h +11 -0
- 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 +8 -2
- data/src/Headers.h +3 -5
- data/src/IgnoreSslErrors.cpp +4 -3
- data/src/IgnoreSslErrors.h +3 -5
- data/src/JavascriptAlertMessages.cpp +10 -0
- data/src/JavascriptAlertMessages.h +9 -0
- data/src/JavascriptConfirmMessages.cpp +10 -0
- data/src/JavascriptConfirmMessages.h +9 -0
- data/src/JavascriptInvocation.cpp +1 -1
- data/src/JavascriptInvocation.h +1 -1
- data/src/JavascriptPromptMessages.cpp +10 -0
- data/src/JavascriptPromptMessages.h +9 -0
- data/src/NetworkAccessManager.cpp +38 -5
- data/src/NetworkAccessManager.h +20 -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/Response.cpp +4 -0
- data/src/Response.h +1 -0
- data/src/Server.cpp +2 -3
- data/src/Server.h +0 -2
- data/src/SetConfirmAction.cpp +11 -0
- data/src/SetConfirmAction.h +9 -0
- data/src/SetCookie.cpp +3 -4
- data/src/SetCookie.h +3 -5
- data/src/SetPromptAction.cpp +11 -0
- data/src/SetPromptAction.h +9 -0
- data/src/SetPromptText.cpp +11 -0
- data/src/SetPromptText.h +9 -0
- data/src/SetProxy.cpp +2 -1
- data/src/SetProxy.h +3 -5
- data/src/SetSkipImageLoading.cpp +12 -0
- data/src/SetSkipImageLoading.h +9 -0
- data/src/SetTimeout.cpp +19 -0
- data/src/SetTimeout.h +9 -0
- data/src/SocketCommand.cpp +21 -0
- data/src/SocketCommand.h +29 -0
- data/src/Source.cpp +3 -2
- data/src/Source.h +3 -4
- data/src/Status.cpp +2 -1
- data/src/Status.h +3 -5
- data/src/TimeoutCommand.cpp +69 -0
- data/src/TimeoutCommand.h +41 -0
- data/src/UnsupportedContentHandler.cpp +11 -17
- data/src/UnsupportedContentHandler.h +5 -3
- 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 +129 -44
- data/src/WebPage.h +37 -11
- data/src/WebPageManager.cpp +127 -0
- data/src/WebPageManager.h +59 -0
- data/src/WindowFocus.cpp +32 -0
- data/src/WindowFocus.h +15 -0
- data/src/body.cpp +2 -1
- data/src/capybara.js +38 -10
- data/src/find_command.h +17 -2
- data/src/main.cpp +0 -2
- data/src/webkit_server.pro +36 -0
- data/templates/Command.cpp +2 -4
- data/templates/Command.h +3 -3
- metadata +106 -27
- data/ChangeLog +0 -70
- data/lib/capybara/driver/webkit.rb +0 -136
data/src/Connection.h
CHANGED
@@ -8,12 +8,13 @@ class Response;
|
|
8
8
|
class CommandParser;
|
9
9
|
class CommandFactory;
|
10
10
|
class PageLoadingCommand;
|
11
|
+
class WebPageManager;
|
11
12
|
|
12
13
|
class Connection : public QObject {
|
13
14
|
Q_OBJECT
|
14
15
|
|
15
16
|
public:
|
16
|
-
Connection(QTcpSocket *socket,
|
17
|
+
Connection(QTcpSocket *socket, WebPageManager *manager, QObject *parent = 0);
|
17
18
|
|
18
19
|
public slots:
|
19
20
|
void commandReady(Command *command);
|
@@ -21,17 +22,15 @@ class Connection : public QObject {
|
|
21
22
|
void pendingLoadFinished(bool success);
|
22
23
|
|
23
24
|
private:
|
24
|
-
void startCommand();
|
25
|
+
void startCommand(Command *);
|
25
26
|
void writeResponse(Response *response);
|
26
27
|
void writePageLoadFailure();
|
27
28
|
|
28
29
|
QTcpSocket *m_socket;
|
29
|
-
|
30
|
-
WebPage *m_page;
|
30
|
+
WebPageManager *m_manager;
|
31
31
|
CommandParser *m_commandParser;
|
32
32
|
CommandFactory *m_commandFactory;
|
33
|
-
PageLoadingCommand *m_runningCommand;
|
34
33
|
bool m_pageSuccess;
|
35
|
-
|
34
|
+
WebPage *currentPage();
|
36
35
|
};
|
37
36
|
|
data/src/ConsoleMessages.cpp
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
#include "ConsoleMessages.h"
|
2
2
|
#include "WebPage.h"
|
3
|
+
#include "WebPageManager.h"
|
3
4
|
|
4
|
-
ConsoleMessages::ConsoleMessages(
|
5
|
+
ConsoleMessages::ConsoleMessages(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
5
6
|
}
|
6
7
|
|
7
8
|
void ConsoleMessages::start() {
|
data/src/ConsoleMessages.h
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
|
3
|
-
class
|
4
|
-
|
5
|
-
class ConsoleMessages : public Command {
|
3
|
+
class ConsoleMessages : public SocketCommand {
|
6
4
|
Q_OBJECT
|
7
5
|
|
8
6
|
public:
|
9
|
-
ConsoleMessages(
|
7
|
+
ConsoleMessages(WebPageManager *, QStringList &arguments, QObject *parent = 0);
|
10
8
|
virtual void start();
|
11
9
|
};
|
12
10
|
|
data/src/CurrentUrl.cpp
CHANGED
@@ -1,57 +1,17 @@
|
|
1
1
|
#include "CurrentUrl.h"
|
2
2
|
#include "WebPage.h"
|
3
|
+
#include "WebPageManager.h"
|
3
4
|
|
4
|
-
CurrentUrl::CurrentUrl(
|
5
|
+
CurrentUrl::CurrentUrl(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
5
6
|
}
|
6
7
|
|
7
|
-
/*
|
8
|
-
* This CurrentUrl command attempts to produce a current_url value consistent
|
9
|
-
* with that returned by the Selenium WebDriver Capybara driver.
|
10
|
-
*
|
11
|
-
* It does not currently return the correct value in the case of an iframe whose
|
12
|
-
* source URL results in a redirect because the loading of the iframe does not
|
13
|
-
* generate a history item. This is most likely a rare case and is consistent
|
14
|
-
* with the current behavior of the capybara-webkit driver.
|
15
|
-
*
|
16
|
-
* The following two values are *not* affected by Javascript pushState.
|
17
|
-
*
|
18
|
-
* QWebFrame->url()
|
19
|
-
* QWebHistoryItem.originalUrl()
|
20
|
-
*
|
21
|
-
* The following two values *are* affected by Javascript pushState.
|
22
|
-
*
|
23
|
-
* QWebFrame->requestedUrl()
|
24
|
-
* QWebHistoryItem.url()
|
25
|
-
*
|
26
|
-
* In the cases that we have access to both the QWebFrame values and the
|
27
|
-
* correct history item for that frame, we can compare the values and determine
|
28
|
-
* if a redirect occurred and if pushState was used. The table below describes
|
29
|
-
* the various combinations of URL values that are possible.
|
30
|
-
*
|
31
|
-
* O -> originally requested URL
|
32
|
-
* R -> URL after redirection
|
33
|
-
* P -> URL set by pushState
|
34
|
-
* * -> denotes the desired URL value from the frame
|
35
|
-
*
|
36
|
-
* frame history
|
37
|
-
* case url requestedUrl url originalUrl
|
38
|
-
* -----------------------------------------------------------------
|
39
|
-
* regular load O O* O O
|
40
|
-
*
|
41
|
-
* redirect w/o R* O R O
|
42
|
-
* pushState
|
43
|
-
*
|
44
|
-
* pushState O P* P O
|
45
|
-
* only
|
46
|
-
*
|
47
|
-
* redirect w/ R P* P O
|
48
|
-
* pushState
|
49
|
-
*
|
50
|
-
* Based on the above information, we only need to check for the case of a
|
51
|
-
* redirect w/o pushState, in which case QWebFrame->url() will have the correct
|
52
|
-
* current_url value. In all other cases QWebFrame->requestedUrl() is correct.
|
53
|
-
*/
|
54
8
|
void CurrentUrl::start() {
|
9
|
+
#if QT_VERSION >= QT_VERSION_CHECK(4, 8, 0)
|
10
|
+
QStringList arguments;
|
11
|
+
QVariant result = page()->invokeCapybaraFunction("currentUrl", arguments);
|
12
|
+
QString url = result.toString();
|
13
|
+
emit finished(new Response(true, url));
|
14
|
+
#else
|
55
15
|
QUrl humanUrl = wasRedirectedAndNotModifiedByJavascript() ?
|
56
16
|
page()->currentFrame()->url() : page()->currentFrame()->requestedUrl();
|
57
17
|
QByteArray encodedBytes = humanUrl.toEncoded();
|
@@ -64,5 +24,6 @@ bool CurrentUrl::wasRegularLoad() {
|
|
64
24
|
|
65
25
|
bool CurrentUrl::wasRedirectedAndNotModifiedByJavascript() {
|
66
26
|
return !wasRegularLoad() && page()->currentFrame()->url() == page()->history()->currentItem().url();
|
27
|
+
#endif
|
67
28
|
}
|
68
29
|
|
data/src/CurrentUrl.h
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
|
3
|
-
class
|
4
|
-
|
5
|
-
class CurrentUrl : public Command {
|
3
|
+
class CurrentUrl : public SocketCommand {
|
6
4
|
Q_OBJECT
|
7
5
|
|
8
6
|
public:
|
9
|
-
CurrentUrl(
|
7
|
+
CurrentUrl(WebPageManager *, QStringList &arguments, QObject *parent = 0);
|
10
8
|
virtual void start();
|
9
|
+
#if QT_VERSION < QT_VERSION_CHECK(4, 8, 0)
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
private:
|
12
|
+
bool wasRegularLoad();
|
13
|
+
bool wasRedirectedAndNotModifiedByJavascript();
|
14
|
+
#endif
|
15
15
|
};
|
16
16
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
#include "EnableLogging.h"
|
2
|
+
#include "WebPageManager.h"
|
3
|
+
|
4
|
+
EnableLogging::EnableLogging(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
5
|
+
}
|
6
|
+
|
7
|
+
void EnableLogging::start() {
|
8
|
+
manager()->enableLogging();
|
9
|
+
emit finished(new Response(true));
|
10
|
+
}
|
data/src/EnableLogging.h
ADDED
data/src/Evaluate.cpp
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
#include "Evaluate.h"
|
2
2
|
#include "WebPage.h"
|
3
|
+
#include "WebPageManager.h"
|
3
4
|
#include <iostream>
|
4
5
|
|
5
|
-
Evaluate::Evaluate(
|
6
|
+
Evaluate::Evaluate(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
6
7
|
m_buffer = "";
|
7
8
|
}
|
8
9
|
|
data/src/Evaluate.h
CHANGED
@@ -1,14 +1,12 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
|
3
3
|
#include <QVariantList>
|
4
4
|
|
5
|
-
class
|
6
|
-
|
7
|
-
class Evaluate : public Command {
|
5
|
+
class Evaluate : public SocketCommand {
|
8
6
|
Q_OBJECT
|
9
7
|
|
10
8
|
public:
|
11
|
-
Evaluate(
|
9
|
+
Evaluate(WebPageManager *, QStringList &arguments, QObject *parent = 0);
|
12
10
|
virtual void start();
|
13
11
|
|
14
12
|
private:
|
data/src/Execute.cpp
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
#include "Execute.h"
|
2
2
|
#include "WebPage.h"
|
3
|
+
#include "WebPageManager.h"
|
3
4
|
|
4
|
-
Execute::Execute(
|
5
|
+
Execute::Execute(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
5
6
|
}
|
6
7
|
|
7
8
|
void Execute::start() {
|
data/src/Execute.h
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
|
3
|
-
class
|
4
|
-
|
5
|
-
class Execute : public Command {
|
3
|
+
class Execute : public SocketCommand {
|
6
4
|
Q_OBJECT
|
7
5
|
|
8
6
|
public:
|
9
|
-
Execute(
|
7
|
+
Execute(WebPageManager *, QStringList &arguments, QObject *parent = 0);
|
10
8
|
virtual void start();
|
11
9
|
};
|
12
10
|
|
data/src/Find.cpp
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
#include "Find.h"
|
2
|
-
#include "
|
2
|
+
#include "SocketCommand.h"
|
3
3
|
#include "WebPage.h"
|
4
|
+
#include "WebPageManager.h"
|
4
5
|
|
5
|
-
Find::Find(
|
6
|
+
Find::Find(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
6
7
|
}
|
7
8
|
|
8
9
|
void Find::start() {
|
data/src/Find.h
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
|
3
|
-
class
|
4
|
-
|
5
|
-
class Find : public Command {
|
3
|
+
class Find : public SocketCommand {
|
6
4
|
Q_OBJECT
|
7
5
|
|
8
6
|
public:
|
9
|
-
Find(
|
7
|
+
Find(WebPageManager *, QStringList &arguments, QObject *parent = 0);
|
10
8
|
virtual void start();
|
11
9
|
};
|
12
10
|
|
data/src/FrameFocus.cpp
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
#include "FrameFocus.h"
|
2
|
-
#include "
|
2
|
+
#include "SocketCommand.h"
|
3
3
|
#include "WebPage.h"
|
4
|
+
#include "WebPageManager.h"
|
4
5
|
|
5
|
-
FrameFocus::FrameFocus(
|
6
|
+
FrameFocus::FrameFocus(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
6
7
|
}
|
7
8
|
|
8
9
|
void FrameFocus::start() {
|
data/src/FrameFocus.h
CHANGED
@@ -1,13 +1,12 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
|
3
|
-
class WebPage;
|
4
3
|
class QWebFrame;
|
5
4
|
|
6
|
-
class FrameFocus : public
|
5
|
+
class FrameFocus : public SocketCommand {
|
7
6
|
Q_OBJECT
|
8
7
|
|
9
8
|
public:
|
10
|
-
FrameFocus(
|
9
|
+
FrameFocus(WebPageManager *, QStringList &arguments, QObject *parent = 0);
|
11
10
|
virtual void start();
|
12
11
|
|
13
12
|
private:
|
data/src/GetCookies.cpp
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
#include "GetCookies.h"
|
2
2
|
#include "WebPage.h"
|
3
|
+
#include "WebPageManager.h"
|
3
4
|
#include "NetworkCookieJar.h"
|
4
5
|
|
5
|
-
GetCookies::GetCookies(
|
6
|
+
GetCookies::GetCookies(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent)
|
6
7
|
{
|
7
8
|
m_buffer = "";
|
8
9
|
}
|
9
10
|
|
10
11
|
void GetCookies::start()
|
11
12
|
{
|
12
|
-
NetworkCookieJar *jar =
|
13
|
-
->networkAccessManager()
|
14
|
-
->cookieJar());
|
13
|
+
NetworkCookieJar *jar = manager()->cookieJar();
|
15
14
|
foreach (QNetworkCookie cookie, jar->getAllCookies()) {
|
16
15
|
m_buffer.append(cookie.toRawForm());
|
17
16
|
m_buffer.append("\n");
|
data/src/GetCookies.h
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
|
3
|
-
class
|
4
|
-
|
5
|
-
class GetCookies : public Command {
|
3
|
+
class GetCookies : public SocketCommand {
|
6
4
|
Q_OBJECT;
|
7
5
|
|
8
6
|
public:
|
9
|
-
GetCookies(
|
7
|
+
GetCookies(WebPageManager *, QStringList &arguments, QObject *parent = 0);
|
10
8
|
virtual void start();
|
11
9
|
|
12
10
|
private:
|
data/src/GetTimeout.cpp
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
#include "GetTimeout.h"
|
2
|
+
#include "WebPageManager.h"
|
3
|
+
|
4
|
+
GetTimeout::GetTimeout(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
5
|
+
}
|
6
|
+
|
7
|
+
void GetTimeout::start() {
|
8
|
+
emit finished(new Response(true, QString::number(manager()->getTimeout())));
|
9
|
+
}
|
data/src/GetTimeout.h
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#include "GetWindowHandle.h"
|
2
|
+
#include "WebPage.h"
|
3
|
+
#include "WebPageManager.h"
|
4
|
+
#include <QStringList>
|
5
|
+
|
6
|
+
GetWindowHandle::GetWindowHandle(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
7
|
+
}
|
8
|
+
|
9
|
+
void GetWindowHandle::start() {
|
10
|
+
emit finished(new Response(true, page()->uuid()));
|
11
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#include "GetWindowHandles.h"
|
2
|
+
#include "WebPageManager.h"
|
3
|
+
#include "CommandFactory.h"
|
4
|
+
#include "WebPage.h"
|
5
|
+
#include <QStringList>
|
6
|
+
|
7
|
+
GetWindowHandles::GetWindowHandles(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
8
|
+
}
|
9
|
+
|
10
|
+
void GetWindowHandles::start() {
|
11
|
+
QString handles = "[";
|
12
|
+
QStringList stringList;
|
13
|
+
|
14
|
+
foreach(WebPage *page, manager()->pages())
|
15
|
+
stringList.append("\"" + page->uuid() + "\"");
|
16
|
+
|
17
|
+
handles += stringList.join(",") + "]";
|
18
|
+
|
19
|
+
emit finished(new Response(true, handles));
|
20
|
+
}
|
data/src/Header.cpp
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
#include "Header.h"
|
2
2
|
#include "WebPage.h"
|
3
|
+
#include "WebPageManager.h"
|
3
4
|
#include "NetworkAccessManager.h"
|
4
5
|
|
5
|
-
Header::Header(
|
6
|
+
Header::Header(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
6
7
|
}
|
7
8
|
|
8
9
|
void Header::start() {
|
data/src/Header.h
CHANGED
@@ -1,11 +1,9 @@
|
|
1
|
-
#include "
|
1
|
+
#include "SocketCommand.h"
|
2
2
|
|
3
|
-
class
|
4
|
-
|
5
|
-
class Header : public Command {
|
3
|
+
class Header : public SocketCommand {
|
6
4
|
Q_OBJECT
|
7
5
|
|
8
6
|
public:
|
9
|
-
Header(
|
7
|
+
Header(WebPageManager *, QStringList &arguments, QObject *parent = 0);
|
10
8
|
virtual void start();
|
11
9
|
};
|