|
1
2
3
4
|
#ifndef LOGINSCREEN_H
#define LOGINSCREEN_H
#include <QDialog>
|
|
5
|
#include <QRegExp>
|
|
6
|
#include "Socket.h"
|
|
7
|
#include "chatroom.h"
|
|
8
9
10
11
12
13
14
15
16
17
|
namespace Ui {
class LoginScreen;
}
class LoginScreen : public QDialog
{
Q_OBJECT
public:
|
|
18
|
explicit LoginScreen(Socket *s, QWidget *parent = 0);
|
|
19
|
bool validateURL(QString& url);
|
|
20
|
bool parseURL(QString& URL);
|
|
21
|
~LoginScreen();
|
|
22
23
24
25
|
public slots:
void connectToChat();
void cancelLogin();
|
|
26
27
28
|
private:
Ui::LoginScreen *ui;
|
|
29
30
31
|
int port;
QString host;
Socket* s;
|
|
32
33
34
|
};
#endif // LOGINSCREEN_H
|