Permalink
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 362 Bytes
#include "RequestedUrl.h"
#include "WebPage.h"
RequestedUrl::RequestedUrl(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {
}
void RequestedUrl::start() {
QUrl humanUrl = page()->currentFrame()->requestedUrl();
QByteArray encodedBytes = humanUrl.toEncoded();
emit finished(new Response(true, encodedBytes));
}