2024-11-19 17:29:58 +08:00
|
|
|
#ifndef DATAMANAGER_H
|
|
|
|
#define DATAMANAGER_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include "SqlCore.h"
|
|
|
|
#include "SqlGenerate.h"
|
|
|
|
class DataManager:public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
private:
|
2024-11-20 15:28:10 +08:00
|
|
|
DataManager(QObject * parent = NULL);
|
2024-11-19 17:29:58 +08:00
|
|
|
~DataManager();
|
|
|
|
public:
|
|
|
|
static DataManager& instance();
|
|
|
|
void init();
|
|
|
|
void initTable();
|
|
|
|
private:
|
|
|
|
SqlCore m_sqlcore;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DATAMANAGER_H
|