#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "Device/TedsWriterDevceDetector.h"
#include <QMainWindow>
#include <memory>


namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow {
    Q_OBJECT
public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void init();
protected:
    void closeEvent(QCloseEvent *event) override;
private:
    void loadUiState();
    void saveUiState() const;

    std::unique_ptr<Ui::MainWindow> m_ui;

    TedsWriterDevceDetector m_devDetector;
};

#endif // MAINWINDOW_H
