mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-16 17:11:37 +08:00
4.0
This commit is contained in:
27
src/backend/sparkapi.h
Normal file
27
src/backend/sparkapi.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef SPARKAPI_H
|
||||
#define SPARKAPI_H
|
||||
#include <QObject>
|
||||
#include <QJsonObject>
|
||||
#include <QJsonArray>
|
||||
#include <QJsonParseError>
|
||||
#include "utils/httprequest.h"
|
||||
|
||||
class SparkAPI : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static QString getServerUrl();
|
||||
static QString getImgServerUrl();
|
||||
void getSearchList(QString keyword);
|
||||
void get(QUrl url);
|
||||
void getAppList(QString type);
|
||||
void getAppInfo(QUrl spk);
|
||||
explicit SparkAPI(QObject *parent = nullptr);
|
||||
signals:
|
||||
void finished(QJsonArray);
|
||||
void finishedObject(QJsonObject);
|
||||
|
||||
public slots:
|
||||
};
|
||||
|
||||
#endif // SPARKAPI_H
|
||||
Reference in New Issue
Block a user