capybara-webkit/src/Command.cpp

26 lines
610 B
C++
Raw Permalink Normal View History

2013-02-02 22:32:54 +00:00
#include "Command.h"
#include "ErrorMessage.h"
2011-02-19 03:53:06 +00:00
Command::Command(QObject *parent) : QObject(parent) {
2011-02-19 03:53:06 +00:00
}
QString Command::toString() const {
return metaObject()->className();
}
2013-02-11 23:31:41 +00:00
void Command::finish(bool success) {
emit finished(new Response(success, this));
}
2013-02-11 23:31:41 +00:00
void Command::finish(bool success, QString message) {
emit finished(new Response(success, message, this));
}
2013-02-11 23:31:41 +00:00
void Command::finish(bool success, QByteArray message) {
emit finished(new Response(success, message, this));
}
2013-02-11 23:31:41 +00:00
void Command::finish(bool success, ErrorMessage *message) {
2013-02-02 22:32:54 +00:00
emit finished(new Response(success, message, this));
}