vanilla/app/udpaddressdialog.h

24 lines
480 B
C
Raw Normal View History

2024-08-04 15:34:13 -04:00
#ifndef UDP_ADDRESS_DIALOG
#define UDP_ADDRESS_DIALOG
#include <QDialog>
#include <QHostAddress>
#include <QLineEdit>
class UdpAddressDialog : public QDialog
{
Q_OBJECT
public:
UdpAddressDialog(QWidget *parent = nullptr);
inline const QHostAddress &acceptedAddress() const { return m_acceptedAddress; }
public slots:
virtual void done(int r) override;
private:
QLineEdit *m_addressLine;
QHostAddress m_acceptedAddress;
};
#endif // UDP_ADDRESS_DIALOG