mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-23 19:42:21 +08:00
30 lines
576 B
C++
30 lines
576 B
C++
|
|
#pragma once
|
|
|
|
#include <QPointer>
|
|
#include <QString>
|
|
#include <QSettings>
|
|
#include <QFile>
|
|
#include <QtNetwork/QNetworkReply>
|
|
|
|
#include "spkstore.h"
|
|
#include "spklogging.h"
|
|
|
|
#define STORE (SpkStore::Instance)
|
|
#define CFG (SpkStore::Instance->mCfg)
|
|
#define RES (SpkResource::Instance)
|
|
|
|
namespace SpkUtils
|
|
{
|
|
QString GetDistroName();
|
|
|
|
void VerifySingleRequest(QPointer<QNetworkReply> aReply);
|
|
|
|
void DeleteReplyLater(QNetworkReply *aReply);
|
|
|
|
bool VerifyReplyJson(QNetworkReply *aReply, QJsonValue& aRetDoc);
|
|
|
|
QString CutFileName(QString);
|
|
QString CutPath(QString);
|
|
}
|