完成获取应用列表、获取内置app列表

This commit is contained in:
Mike Solar
2023-08-10 15:36:08 +08:00
parent 0ecf1bdf6a
commit b8da134809
22 changed files with 920 additions and 547 deletions

View File

@ -6,9 +6,11 @@
#include <QObject>
#include <QDate>
#include <QtNetwork/QtNetwork>
#include "buttonstruct.h"
typedef struct {
struct ConfigResponse;
class ConfigRequest;
class SoftwareRequest;
typedef struct tagRecord{
int id;
int sort;
QString app_id;
@ -26,7 +28,9 @@ typedef struct {
QString func;
QString path;
QString url;
bool status;
}Record;
#include "netio.h"
class SQLiteHelper : public QObject
{
@ -35,8 +39,8 @@ class SQLiteHelper : public QObject
public:
SQLiteHelper(QObject *parent = nullptr);
bool update_software();
bool get_software(QList<ButtonStruct>* buttons);
bool update_others();
bool get_software(QList<ButtonStruct>* buttons, ConfigResponse* config_response);
bool update_app();
~SQLiteHelper();
private: