1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00
capybara-webkit/src/Command.cpp

26 lines
610 B
C++
Raw Normal View History

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