Permalink
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 537 Bytes
#ifndef COMMAND_H
#define COMMAND_H
#include "Response.h"
#include <QObject>
#include <QString>
class ErrorMessage;
class Command : public QObject {
Q_OBJECT
public:
Command(QObject *parent = 0);
virtual void start() = 0;
virtual QString toString() const;
protected:
void finish(bool success);
void finish(bool success, QString message);
void finish(bool success, QByteArray message);
void finish(bool success, ErrorMessage *message);
signals:
void finished(Response *response);
};
#endif