完成获取应用列表、获取内置app列表
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user