#ifndef CONTEXT_H #define CONTEXT_H #include #include "core_global.h" #include "transaction.h" #include class IPlugin; class CORESHARED_EXPORT Context { public: static Context &instance(); QList plugins(); void loadPlugins(); void openDb(const QString &path); odb::database *db() { return m_db; } private: friend class Transaction; Context(); QList m_plugins; odb::database *m_db; bool m_inTransaction; }; #endif // CONTEXT_H