#ifndef CONTEXT_H #define CONTEXT_H #include #include class IPlugin; class Context { public: static Context &instance(); QList plugins(); void loadPlugins(); void openDb(const QString &path); odb::database *db(); private: Context(); QList m_plugins; odb::database *m_db; }; #endif // CONTEXT_H