#ifndef LOGINSCREEN_H #define LOGINSCREEN_H #include #include #include "chatroom.h" #include "Socket.h" namespace Ui { class LoginScreen; } class LoginScreen : public QDialog { Q_OBJECT public: explicit LoginScreen(Socket *s, QWidget *parent = 0); bool validateURL(QString& url); bool parseURL(QString& URL); ~LoginScreen(); public slots: void connectToChat(); void cancelLogin(); private: Ui::LoginScreen *ui; Socket* s; QString host; int port; }; #endif // LOGINSCREEN_H