DatabaseFactory: Move to /shared
这个提交包含在:
16
shared/databasefactory.h
普通文件
16
shared/databasefactory.h
普通文件
@@ -0,0 +1,16 @@
|
||||
#ifndef DATABASEFACTORY_H
|
||||
#define DATABASEFACTORY_H
|
||||
#include <QSqlDatabase>
|
||||
#include <QThreadStorage>
|
||||
class DatabaseFactory
|
||||
{
|
||||
private:
|
||||
QString connectionString;
|
||||
|
||||
public:
|
||||
DatabaseFactory(QString connectionString);
|
||||
QSqlDatabase createNew();
|
||||
QSqlDatabase forCurrentThread();
|
||||
};
|
||||
|
||||
#endif // DATABASEFACTORY_H
|
||||
在新工单中引用
屏蔽一个用户