You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
379 B
C
26 lines
379 B
C
9 years ago
|
#ifndef CONTEXT_H
|
||
|
#define CONTEXT_H
|
||
|
|
||
|
#include <QList>
|
||
|
#include <odb/database.hxx>
|
||
|
|
||
|
class IPlugin;
|
||
|
|
||
|
class Context
|
||
|
{
|
||
|
public:
|
||
|
static Context &instance();
|
||
|
QList<IPlugin*> plugins();
|
||
|
void loadPlugins();
|
||
|
void openDb(const QString &path);
|
||
|
odb::database *db();
|
||
|
|
||
|
private:
|
||
|
Context();
|
||
|
QList<IPlugin*> m_plugins;
|
||
|
odb::database *m_db;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // CONTEXT_H
|