capybara-webkit/src/Command.h

27 lines
480 B
C
Raw Normal View History

2011-02-19 03:53:06 +00:00
#ifndef COMMAND_H
#define COMMAND_H
#include <QObject>
#include "Response.h"
#include <QString>
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:
void emitFinished(bool success);
void emitFinished(bool success, QString message);
void emitFinished(bool success, QByteArray message);
2011-02-19 03:53:06 +00:00
signals:
void finished(Response *response);
2011-02-19 03:53:06 +00:00
};
#endif