File indexing completed on 2022-09-27 16:37:09

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 <QRegExp>
0013 
0014 namespace Ui {
0015     class ChooseSerial;
0016 }
0017 
0018 class ChooseSerial : public GenericPage
0019 {
0020     Q_OBJECT
0021 public:
0022     explicit ChooseSerial(QWidget *parent = nullptr);
0023     ~ChooseSerial() override;
0024 
0025     void setValues(const QVariantHash &args) override;
0026     QVariantHash values() const override;
0027     bool isValid() const override;
0028 
0029 public slots:
0030     void load();
0031 
0032 private:
0033     Ui::ChooseSerial *ui;
0034     QRegExp m_rx;
0035     bool m_isValid = false;
0036 };
0037 
0038 #endif