#ifndef CONTEXT_H #define CONTEXT_H #include #include #include #include #include "core_global.h" #include "transaction.h" #include class IPlugin; class CORESHARED_EXPORT Context { public: static Context &instance(); QList plugins(); IPlugin *plugin(const QString &pluginId); void loadPlugins(); void openDb(const QString &path); odb::database *db() { return m_db; } private: Context(); QList m_plugins; odb::database *m_db; void checkDb(const QString &path); void checkSchema(const QSqlDatabase &db, const QMap &schemaMap); }; #endif // CONTEXT_H