Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 14 lines (10 sloc) 0.333 kB
354180a @jferris CommandFactory handles unknown commands by returning a NullCommand
jferris authored
1 #include "NullCommand.h"
2 #include "WebPage.h"
f80125e @mhoran Pass the WebPageManager to each command
mhoran authored
3 #include "WebPageManager.h"
354180a @jferris CommandFactory handles unknown commands by returning a NullCommand
jferris authored
4
95732ad @jferris Split Command into more abstract Command and concrete SocketCommand
jferris authored
5 NullCommand::NullCommand(QString name, QObject *parent) : Command(parent) {
6 m_name = name;
7 }
354180a @jferris CommandFactory handles unknown commands by returning a NullCommand
jferris authored
8
9 void NullCommand::start() {
95732ad @jferris Split Command into more abstract Command and concrete SocketCommand
jferris authored
10 QString failure = QString("[Capybara WebKit] Unknown command: ") + m_name + "\n";
354180a @jferris CommandFactory handles unknown commands by returning a NullCommand
jferris authored
11 emit finished(new Response(false, failure));
12 }
13
Something went wrong with that request. Please try again.