fort/src/ui/fortmanager.h

39 lines
571 B
C
Raw Normal View History

2017-09-01 15:13:17 +00:00
#ifndef FORTMANAGER_H
#define FORTMANAGER_H
2017-09-01 13:13:12 +00:00
#include <QObject>
class QQmlApplicationEngine;
class FortSettings;
class FirewallConf;
2017-09-01 15:13:17 +00:00
class FortManager : public QObject
2017-09-01 13:13:12 +00:00
{
Q_OBJECT
public:
2017-09-01 15:13:17 +00:00
explicit FortManager(QObject *parent = nullptr);
2017-09-01 13:13:12 +00:00
static void registerQmlTypes();
signals:
2017-09-01 15:13:17 +00:00
void fillConf(QObject *newConf);
2017-09-01 13:13:12 +00:00
public slots:
2017-09-01 15:13:17 +00:00
void showWindow();
2017-09-01 13:13:12 +00:00
2017-09-01 15:13:17 +00:00
bool saveConf();
2017-09-01 13:13:12 +00:00
private:
void setupContext();
private:
QQmlApplicationEngine *m_engine;
FortSettings *m_fortSettings;
2017-09-01 15:13:17 +00:00
FirewallConf *m_firewallConf;
2017-09-01 13:13:12 +00:00
};
2017-09-01 15:13:17 +00:00
#endif // FORTMANAGER_H