2011-02-19 03:53:06 +00:00
|
|
|
#include "Visit.h"
|
|
|
|
#include "Command.h"
|
|
|
|
#include "WebPage.h"
|
2012-04-04 22:18:17 +00:00
|
|
|
#include "WebPageManager.h"
|
2011-02-19 03:53:06 +00:00
|
|
|
|
2012-04-04 22:18:17 +00:00
|
|
|
Visit::Visit(WebPageManager *manager, QStringList &arguments, QObject *parent) : Command(manager, arguments, parent) {
|
2011-02-19 03:53:06 +00:00
|
|
|
}
|
|
|
|
|
2012-03-16 23:58:58 +00:00
|
|
|
void Visit::start() {
|
|
|
|
QUrl requestedUrl = QUrl::fromEncoded(arguments()[0].toUtf8(), QUrl::StrictMode);
|
2011-09-30 16:32:06 +00:00
|
|
|
page()->currentFrame()->load(QUrl(requestedUrl));
|
2012-03-16 21:53:36 +00:00
|
|
|
emit finished(new Response(true));
|
2011-02-19 03:53:06 +00:00
|
|
|
}
|