Blame view

QChatClient/loginscreen.h 555 Bytes
1
2
3
4
#ifndef LOGINSCREEN_H
#define LOGINSCREEN_H

#include <QDialog>
5
6
#include <QRegExp>
#include "chatroom.h"
Imanol-Mikel Barba Sabariego authored
7
8
#include "Socket.h"
9
10
11
12
13
14
15
16
17
18

namespace Ui {
class LoginScreen;
}

class LoginScreen : public QDialog
{
    Q_OBJECT

public:
19
    explicit LoginScreen(Socket *s, QWidget *parent = 0);
20
    bool validateURL(QString& url);
21
    bool parseURL(QString& URL);
22
    ~LoginScreen();
23
24
25
26

public slots:
     void connectToChat();
     void cancelLogin();
27
28
29

private:
    Ui::LoginScreen *ui;
30
    Socket* s;
Imanol-Mikel Barba Sabariego authored
31
32
    QString host;
    int port;
33
34
35
};

#endif // LOGINSCREEN_H