AicsKnowledgeBase_client/AicsKnowledgeBase/src/HttpClient.h

25 lines
496 B
C
Raw Normal View History

2023-06-19 15:45:16 +08:00
//
// Created by wuyiz on 2023/6/19.
//
#ifndef AICSKNOWLEDGEBASE_HTTPCLIENT_H
#define AICSKNOWLEDGEBASE_HTTPCLIENT_H
2023-06-20 10:39:20 +08:00
#include <curl/curl.h>
2023-06-19 15:45:16 +08:00
#include <QObject>
#include <QQmlApplicationEngine>
class HttpClient : public QObject
{
Q_OBJECT
public:
explicit HttpClient(QQmlApplicationEngine &engine, QObject *parent = nullptr);
2023-06-20 10:39:20 +08:00
Q_INVOKABLE void doGetRequest(QString url, QObject* object, QString callback);
2023-06-19 15:45:16 +08:00
private:
QQmlApplicationEngine &engine;
};
#endif //AICSKNOWLEDGEBASE_HTTPCLIENT_H