File indexing completed on 2025-01-19 05:06:21

0001 /*
0002     SPDX-FileCopyrightText: 2010 Daniel Nicoletti <dantti12@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef CHOOSE_SERIAL_H
0008 #define CHOOSE_SERIAL_H
0009 
0010 #include "GenericPage.h"
0011 
0012 #include <QRegularExpression>
0013 
0014 namespace Ui
0015 {
0016 class ChooseSerial;
0017 }
0018 
0019 class ChooseSerial : public GenericPage
0020 {
0021     Q_OBJECT
0022 public:
0023     explicit ChooseSerial(QWidget *parent = nullptr);
0024     ~ChooseSerial() override;
0025 
0026     void setValues(const QVariantMap &args) override;
0027     QVariantMap values() const override;
0028     bool isValid() const override;
0029 
0030 public slots:
0031     void load();
0032 
0033 private:
0034     Ui::ChooseSerial *const ui;
0035     QRegularExpression m_rx;
0036     bool m_isValid = false;
0037 };
0038 
0039 #endif