#ifndef TEDSWRITERMEMTEST_H
#define TEDSWRITERMEMTEST_H

#include "TedsWriterDevBaseWidget.h"
#include <QRegExpValidator>
#include <memory>

namespace Ui {
class TedsWriterMemTest;
}

class TedsWriterMemTest : public TedsWriterDevBaseWidget {
    Q_OBJECT
public:
    explicit TedsWriterMemTest(QWidget *parent = nullptr);
    ~TedsWriterMemTest();

protected:
    void memStateUpdate(bool connected) override;
private Q_SLOTS:
    void read();
    void write();
    void checkText();
private:
    std::unique_ptr<Ui::TedsWriterMemTest> m_ui;
    QRegExpValidator m_validator;
};

#endif // TEDSWRITERMEMTEST_H
