summaryrefslogtreecommitdiffstats
path: root/src/server/net/listenserver.h
blob: e0cece347ea55b96293feb15d698e39ffb3d733d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef LISTENSERVER_H_
#define LISTENSERVER_H_

#include <QtCore>
#include <QList>
#include "sslserver.h"

class Client;

/**
 * Class for listing on new client connection.
 */
class ListenServer : public QObject
{
	Q_OBJECT

private:
	SslServer _server;
	QList<Client*> _clients;

public:
	explicit ListenServer(quint16 port);
	virtual ~ListenServer();

private slots:
	void newClientConnection();

signals:
	void newClient(Client* client);

};

#endif /* LISTENSERVER_H_ */