capybara-webkit/src/Response.h

26 lines
488 B
C
Raw Normal View History

#ifndef RESPONSE_H
#define RESPONSE_H
#include <QObject>
#include <QString>
#include <QByteArray>
class Response : public QObject {
Q_OBJECT
public:
Response(bool success, QString message, QObject *parent);
Response(bool success, QByteArray message, QObject *parent);
Response(bool success, QObject *parent);
bool isSuccess() const;
QByteArray message() const;
2012-07-12 03:36:22 +00:00
QString toString() const;
private:
bool m_success;
QByteArray m_message;
};
#endif