looqs/shared/databasefactory.h

17 строки
312 B
C
Исходник Обычный вид История

#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