Implemented permission settings for Roles.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "transaction.h"
|
||||
|
||||
#include <odb/database.hxx>
|
||||
#include <odb/session.hxx>
|
||||
|
||||
class IPlugin;
|
||||
|
||||
@@ -28,6 +29,7 @@ public:
|
||||
QSettings *settings() { return m_settings; }
|
||||
bool dbOpened() { return m_dbOpened; }
|
||||
void destroy();
|
||||
QStringList defaultPerms();
|
||||
|
||||
private:
|
||||
Context();
|
||||
@@ -35,6 +37,7 @@ private:
|
||||
odb::database *m_db;
|
||||
QSettings *m_settings;
|
||||
bool m_dbOpened;
|
||||
odb::session m_session;
|
||||
|
||||
QStringList m_solved;
|
||||
|
||||
@@ -42,6 +45,7 @@ private:
|
||||
void checkSchema(const QSqlDatabase &db, const QMap<QString, int> &schemaMap);
|
||||
void solveDep(IPlugin *plugin, const QSqlDatabase &db, const QMap<QString, int> &schemaMap);
|
||||
void createSchema(IPlugin *plugin, const QSqlDatabase &db, const QMap<QString, int> &schemaMap);
|
||||
void checkPermissions();
|
||||
};
|
||||
|
||||
#endif // CONTEXT_H
|
||||
|
||||
Reference in New Issue
Block a user