AicsKnowledgeBase_client/AicsKnowledgeBase/src/HttpClient.h

25 lines
480 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
#include <msquic.h>
#include <QObject>
#include <QQmlApplicationEngine>
class HttpClient : public QObject
{
Q_OBJECT
public:
explicit HttpClient(QQmlApplicationEngine &engine, QObject *parent = nullptr);
Q_INVOKABLE void doGetRequest(QObject* object, QString callback);
private:
QQmlApplicationEngine &engine;
};
#endif //AICSKNOWLEDGEBASE_HTTPCLIENT_H