改了几个bug,提交

This commit is contained in:
Mike Solar
2023-08-15 20:12:36 +08:00
parent 409443e311
commit 46f48b8440
7 changed files with 175 additions and 77 deletions

View File

@ -9,6 +9,7 @@
#include "buttonstruct.h"
struct ConfigResponse;
class ConfigRequest;
struct Record2;
class SoftwareRequest;
typedef struct tagRecord{
int id;
@ -34,6 +35,7 @@ typedef struct tagRecord{
struct Categrory
{
int id;
int total;
QString name;
bool display;
int sort;
@ -50,9 +52,10 @@ public:
bool get_software(QList<ButtonStruct>* buttons, ConfigResponse* config_response);
bool update_app();
bool get_buttons(QList<ButtonStruct> &buttons);
bool get_category(QList<Categrory>& categrories, bool is_edit);
bool get_category(QList<Categrory>& categrories, bool is_edit,bool all=false);
bool set_category(QList<Categrory>& categrories);
bool get_all_software(QList<Record> &softwares,int category);
bool get_a_software(QString orig_name, Record2 *record);
QSqlDatabase db;
~SQLiteHelper();