You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
902 B
C++
34 lines
902 B
C++
/*!
|
|
*FileName: ModelDB.h
|
|
*Author: Pan Yingdong
|
|
*Email: bob.pan@hzleaper.com
|
|
*Created:2021/4/7 11:10
|
|
*Note:
|
|
*/
|
|
#ifndef _H_MODELDB_H_
|
|
#define _H_MODELDB_H_
|
|
|
|
#include "databasesql.h"
|
|
#include "InfoFile.h"
|
|
|
|
class ModelDB : public DataBaseSql
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ModelDB(const QString& dbName, const QString &dbType = QString("QSQLITE"));
|
|
~ModelDB();
|
|
|
|
virtual bool InitDatabase();
|
|
QStringList ReadAllModes();//读出所有模板型号名数据
|
|
|
|
virtual bool checkoutData(QVariantMap m_value, QSqlQuery &sql) { return false; };
|
|
virtual bool checkoutData(QString selectStr, QSqlQuery &sql) { return false; };
|
|
virtual bool AddOneWarningMessage(struct WarnMessage m_messageInfo) { return false; };
|
|
virtual bool DelWarnDataByCount(int model = 1, int nCount = 100000) { return false; };
|
|
virtual bool DelAllDatas() { return false; };
|
|
virtual bool DelDatasByTime(QString minTime) { return false; };
|
|
};
|
|
|
|
#endif
|