#ifndef _TCPCLIENT_H
#define	_TCPCLIENT_H

#include <QDialog>
#include <QtNetwork\QTcpSocket>

class QDialogButtonBox;
class QLabel;
class QLineEdit;
class QPushButton;
class QTcpSocket;

class TcpClient : public QWidget
{
		Q_OBJECT

	public:
		TcpClient(QWidget *parent = 0);

	private slots:
		void tcpConnect();
		void createNewAccount();
		void login();
		void readAnswer();
		void displayError(QAbstractSocket::SocketError socketError);

	private:
		QTcpSocket *tcpSocket;
		QString answer;
		quint16 blockSize;
};


#endif	/* _TCPCLIENT_H */