HttpSampleApp.hpp Example File
httptest/src/HttpSampleApp.hpp
#ifndef HTTPSAMPLEAPP_HPP
#define HTTPSAMPLEAPP_HPP
#include <QtCore/QObject>
class HttpSampleApp : public QObject
{
Q_OBJECT
Q_PROPERTY(QString postBody READ postBody WRITE setPostBody NOTIFY postBodyChanged)
Q_PROPERTY(bool useHttps READ useHttps WRITE setUseHttps NOTIFY useHttpsChanged)
public:
HttpSampleApp();
Q_SIGNALS:
void postBodyChanged();
void useHttpsChanged();
private:
void setPostBody(const QString &body);
QString postBody() const;
void setUseHttps(bool value);
bool useHttps() const;
QString m_postBody;};
#endif