Update 更新文档
This commit is contained in:
22
cleaned_source_code/Sqbase/qdbmanagement.h
Normal file
22
cleaned_source_code/Sqbase/qdbmanagement.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef QDBMANAGEMENT_H
|
||||
#define QDBMANAGEMENT_H
|
||||
#include <QObject>
|
||||
#include <QSqlDatabase>
|
||||
#include <QSqlError>
|
||||
#include <QSqlQuery>
|
||||
#include <QStringList>
|
||||
#include <QVector>
|
||||
#include <QDebug>
|
||||
#include "config.h"
|
||||
class QDBManagement : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit QDBManagement(QObject* parent = nullptr);
|
||||
void initConnect(QString db = nullptr, QString pwd = nullptr);
|
||||
void selectStockList(QVector<StockInfo>& list);
|
||||
void selectStockKofDay(QString strCode, std::vector<double>& KList);
|
||||
private:
|
||||
QSqlDatabase m_Database;
|
||||
signals:
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user