完成导航条,尚未Debug
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonObject>
|
||||
#include <Windows.h>
|
||||
#include <QtNetwork/QtNetwork>
|
||||
|
||||
|
||||
typedef struct {
|
||||
@ -31,10 +32,11 @@ typedef struct {
|
||||
QString title_color;
|
||||
QString title_cover_color;
|
||||
}basic;
|
||||
Menu *menu;
|
||||
QList<Menu> *menus;
|
||||
}ConfigResponse;
|
||||
|
||||
class RequestBodyBase:public QObject{
|
||||
Q_OBJECT;
|
||||
public:
|
||||
RequestBodyBase();
|
||||
virtual void sendRequest();
|
||||
@ -49,6 +51,11 @@ protected:
|
||||
QString release;
|
||||
QString sign;
|
||||
QJsonDocument qJsonDocument;
|
||||
QNetworkReply *reply;
|
||||
QEventLoop eventLoop;
|
||||
QTimer *timer;
|
||||
protected slots:
|
||||
void cancelDownload();
|
||||
};
|
||||
class ConfigRequest:public RequestBodyBase{
|
||||
public:
|
||||
|
Reference in New Issue
Block a user