mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 04:42:03 +08:00
New Non-DTK store client prototype
This commit is contained in:
25
inc/spkjsonapiconsumer.h
Normal file
25
inc/spkjsonapiconsumer.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef SPKJSONAPICONSUMER_H
|
||||
#define SPKJSONAPICONSUMER_H
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonObject>
|
||||
#include <QJsonArray>
|
||||
#include <QtNetwork/QNetworkAccessManager>
|
||||
|
||||
class SpkJsonApiConsumer: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
SpkJsonApiConsumer();
|
||||
|
||||
private:
|
||||
QNetworkAccessManager mNet;
|
||||
|
||||
public slots:
|
||||
void RequestUrl(QUrl);
|
||||
|
||||
signals:
|
||||
void RequestFinish(QJsonDocument, int);
|
||||
};
|
||||
|
||||
#endif // SPKJSONAPICONSUMER_H
|
||||
Reference in New Issue
Block a user