mirror of
https://github.com/tnodir/fort
synced 2024-11-16 00:46:57 +00:00
40 lines
623 B
C
40 lines
623 B
C
|
#ifndef FORTWINDOW_H
|
||
|
#define FORTWINDOW_H
|
||
|
|
||
|
#include <QObject>
|
||
|
|
||
|
class QQmlApplicationEngine;
|
||
|
|
||
|
class FortSettings;
|
||
|
class FirewallConf;
|
||
|
|
||
|
class FortWindow : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit FortWindow(FirewallConf *firewallConf,
|
||
|
FortSettings *fortSettings,
|
||
|
QObject *parent = nullptr);
|
||
|
|
||
|
static void registerQmlTypes();
|
||
|
|
||
|
signals:
|
||
|
|
||
|
public slots:
|
||
|
void show();
|
||
|
|
||
|
bool save();
|
||
|
|
||
|
private:
|
||
|
void setupContext();
|
||
|
|
||
|
private:
|
||
|
QQmlApplicationEngine *m_engine;
|
||
|
|
||
|
FirewallConf *m_firewallConf;
|
||
|
FortSettings *m_fortSettings;
|
||
|
};
|
||
|
|
||
|
#endif // FORTWINDOW_H
|