TalkToMe/connect.h
PawelZielinski 8257285477 first
2021-02-06 00:51:42 +01:00

43 lines
551 B
C++

#ifndef CONNECT_H
#define CONNECT_H
#include <QDialog>
namespace Ui {
class Connect;
}
class Connect : public QDialog
{
Q_OBJECT
public:
explicit Connect(QWidget *parent = nullptr);
~Connect();
QString Host() const;
quint16 Port() const;
private slots:
void on_accept_clicked();
void on_back_clicked();
private:
Ui::Connect *ui;
QString mHost;
quint16 mPort;
};
inline QString Connect::Host() const
{
return mHost;
}
inline quint16 Connect::Port() const
{
return mPort;
}
#endif // CONNECT_H