Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (13 sloc) 0.504 kB
#include "Source.h"
#include "WebPage.h"
Source::Source(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {
}
void Source::start() {
QNetworkAccessManager* accessManager = page()->networkAccessManager();
QNetworkRequest request(page()->currentFrame()->url());
reply = accessManager->get(request);
connect(reply, SIGNAL(finished()), this, SLOT(sourceLoaded()));
}
void Source::sourceLoaded() {
emit finished(new Response(true, reply->readAll()));
}
Jump to Line
Something went wrong with that request. Please try again.