mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-09 11:52:21 +08:00
34 lines
711 B
C++
34 lines
711 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);
|
|
|
|
int VerifyReplyJson(QNetworkReply *aReply, QJsonValue& aRetDoc);
|
|
|
|
QString CutFileName(QString);
|
|
QString CutPath(QString);
|
|
QString BytesToSize(size_t s, int prec = 2);
|
|
bool EnsureDirExists(QString path);
|
|
|
|
void FillWidget(QWidget* widget, QVariant val);
|
|
}
|