Added support for settings
This commit is contained in:
@@ -8,6 +8,7 @@ class Role;
|
||||
#include "user.h"
|
||||
#include "role.h"
|
||||
#include "permission.h"
|
||||
#include "system.h"
|
||||
|
||||
#endif // COREDATA_H
|
||||
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
#include "system.h"
|
||||
|
||||
System::System()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
int System::id() const
|
||||
{
|
||||
return m_id;
|
||||
}
|
||||
|
||||
void System::setId(int id)
|
||||
{
|
||||
m_id = id;
|
||||
}
|
||||
|
||||
QString System::pluginId() const
|
||||
{
|
||||
return m_pluginId;
|
||||
}
|
||||
|
||||
QString System::settings() const
|
||||
{
|
||||
return m_settings;
|
||||
}
|
||||
|
||||
void System::setSettings(const QString &settings)
|
||||
{
|
||||
m_settings = settings;
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
#ifndef SYSTEM_H
|
||||
#define SYSTEM_H
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include <odb/core.hxx>
|
||||
|
||||
#pragma db object
|
||||
class System
|
||||
{
|
||||
public:
|
||||
System();
|
||||
|
||||
int id() const;
|
||||
void setId(int id);
|
||||
|
||||
QString pluginId() const;
|
||||
|
||||
QString schemaVersion() const;
|
||||
|
||||
QString settings() const;
|
||||
void setSettings(const QString &settings);
|
||||
|
||||
private:
|
||||
friend class odb::access;
|
||||
|
||||
#pragma db id auto
|
||||
int m_id;
|
||||
QString m_pluginId;
|
||||
QString m_schemaVersion;
|
||||
QString m_settings;
|
||||
};
|
||||
|
||||
#endif // SYSTEM_H
|
||||
Reference in New Issue
Block a user