mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 17:20:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
	
		
			509 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			509 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <QDialog>
 | |
| 
 | |
| namespace Ui
 | |
| {
 | |
| class SerialPortDialog;
 | |
| }
 | |
| 
 | |
| namespace scwx
 | |
| {
 | |
| namespace qt
 | |
| {
 | |
| namespace ui
 | |
| {
 | |
| class SerialPortDialog : public QDialog
 | |
| {
 | |
|    Q_OBJECT
 | |
|    Q_DISABLE_COPY_MOVE(SerialPortDialog)
 | |
| 
 | |
| public:
 | |
|    explicit SerialPortDialog(QWidget* parent = nullptr);
 | |
|    ~SerialPortDialog();
 | |
| 
 | |
|    std::string serial_port();
 | |
|    int         baud_rate();
 | |
| 
 | |
| private:
 | |
|    class Impl;
 | |
|    std::unique_ptr<Impl> p;
 | |
|    Ui::SerialPortDialog* ui;
 | |
| };
 | |
| 
 | |
| } // namespace ui
 | |
| } // namespace qt
 | |
| } // namespace scwx
 | 
