Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (19 sloc) 0.607 kB
#include "SetPromptAction.h"
#include "WebPage.h"
#include "WebPageManager.h"
SetPromptAction::SetPromptAction(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {}
void SetPromptAction::start()
{
QString index;
switch (arguments().length()) {
case 3:
index = page()->setPromptAction(arguments()[0], arguments()[1], arguments()[2]);
break;
case 2:
index = page()->setPromptAction(arguments()[0], arguments()[1]);
break;
default:
page()->setPromptAction(arguments()[0]);
}
finish(true, index);
}
Jump to Line
Something went wrong with that request. Please try again.