#ifndef HTTPSERVICE_H #define HTTPSERVICE_H #include #include class HttpService : public QObject { Q_OBJECT public: explicit HttpService(QObject *parent = 0); QByteArray get(QUrl url, quint32 timeoutInMs = 5000); QByteArray postJson(QUrl url,const QByteArray &json, quint32 timeoutInMs = 5000); // void sendIdcardInfo(); private: QNetworkAccessManager *mManager; signals: public slots: void login(QString username,QString password); void updateStatus(QString firstAidId,QString status); }; #endif // HTTPSERVICE_H