capybara-webkit/src/Command.h

30 lines
537 B
C
Raw Normal View History

2011-02-19 03:53:06 +00:00
#ifndef COMMAND_H
#define COMMAND_H
#include "Response.h"
2013-02-02 22:32:54 +00:00
#include <QObject>
#include <QString>
2011-02-19 03:53:06 +00:00
2013-02-02 22:32:54 +00:00
class ErrorMessage;
2011-02-19 03:53:06 +00:00
class Command : public QObject {
Q_OBJECT
public:
Command(QObject *parent = 0);
virtual void start() = 0;
virtual QString toString() const;
2011-02-19 03:53:06 +00:00
protected:
2013-02-11 23:31:41 +00:00
void finish(bool success);
void finish(bool success, QString message);
void finish(bool success, QByteArray message);
void finish(bool success, ErrorMessage *message);
2011-02-19 03:53:06 +00:00
signals:
void finished(Response *response);
2011-02-19 03:53:06 +00:00
};
#endif