summaryrefslogtreecommitdiffstats
path: root/src/server/net/listenserver.h
blob: 640da2329d22a7d7c49b43eed60e3e0bf07f9e9a (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
#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;

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

private slots:
	void newClientConnection();

signals:
	void newClient(Client* client);

};

#endif /* LISTENSERVER_H_ */