made server threading optional

This commit is contained in:
Max-Wilhelm Bruker 2011-05-21 23:03:00 +02:00
parent c67bc65762
commit a4097659d3
4 changed files with 18 additions and 12 deletions

View file

@ -36,9 +36,10 @@ class Servatrice_TcpServer : public QTcpServer {
Q_OBJECT
private:
Servatrice *server;
bool threaded;
public:
Servatrice_TcpServer(Servatrice *_server, QObject *parent = 0)
: QTcpServer(parent), server(_server) { }
Servatrice_TcpServer(Servatrice *_server, bool _threaded, QObject *parent = 0)
: QTcpServer(parent), server(_server), threaded(_threaded) { }
protected:
void incomingConnection(int socketDescriptor);
};