mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 12:52:04 +08:00
实现应用列表和SpkResource
SpkResource现有已知问题:首次使用不会完全进行所有任务。
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "spklogging.h"
|
||||
#include "spkmainwindow.h"
|
||||
#include "spkresource.h"
|
||||
|
||||
/**
|
||||
* @brief SpkStore class is the core of the store client side program, it is constructed first and
|
||||
@@ -27,13 +28,19 @@ class SpkStore : public QObject
|
||||
|
||||
SpkMainWindow* GetRootWindow() { return mMainWindow; }
|
||||
|
||||
void SetApiResuestUrl(QString aUrlStr) { mApiRequestUrl = aUrlStr; }
|
||||
void SetApiRequestUrl(QString aUrlStr) { mApiRequestUrl = aUrlStr; }
|
||||
QString GetApiRequestUrl() { return mApiRequestUrl; }
|
||||
QNetworkReply *SendApiRequest(QString path, QJsonDocument param = QJsonDocument());
|
||||
QNetworkReply *SendResourceRequest(QString path); ///< WARNING: Only intended for SpkResource!
|
||||
|
||||
private:
|
||||
SpkLogger *mLogger;
|
||||
SpkMainWindow *mMainWindow = nullptr;
|
||||
SpkResource *mResMgr = nullptr;
|
||||
QNetworkAccessManager *mNetMgr = nullptr;
|
||||
QString mDistroName, mApiRequestUrl, mUserAgentStr, mConfigPath;
|
||||
QString mDistroName,
|
||||
mApiRequestUrl,
|
||||
mResourceRequestUrl,
|
||||
mUserAgentStr,
|
||||
mConfigPath;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user