#ifndef SQLDBHELPER_H #define SQLDBHELPER_H #include "EasyQtSql.h" using namespace EasyQtSql; class SqlDBHelper { public: enum SqlDBType { SQLITE3 = 1, MYSQL, NOTHING }; static QSqlDatabase getDatabase(SqlDBType dbType = SQLITE3, const QString &connectionName = QSqlDatabase::defaultConnection); static QSqlDatabase getDatabase2(SqlDBType dbType = SQLITE3, const QString &connectionName = QSqlDatabase::defaultConnection); private: static bool configFinished; static bool configFinished2; }; #endif // SQLDBHELPER_H