33 lines
609 B
C++
33 lines
609 B
C++
#ifndef AKASHIMAIN_H
|
|
#define AKASHIMAIN_H
|
|
|
|
#include <include/advertiser.h>
|
|
#include <include/config_manager.h>
|
|
|
|
#include <QMainWindow>
|
|
#include <QSettings>
|
|
#include <QDebug>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui { class AkashiMain; }
|
|
QT_END_NAMESPACE
|
|
|
|
class AkashiMain : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AkashiMain(QWidget *parent = nullptr);
|
|
~AkashiMain();
|
|
|
|
QSettings config;
|
|
ConfigManager config_manager;
|
|
|
|
void generateDefaultConfig(bool backup_old);
|
|
void updateConfig(int current_version);
|
|
private:
|
|
Ui::AkashiMain *ui;
|
|
Advertiser *advertiser;
|
|
};
|
|
#endif // AKASHIMAIN_H
|