diff options
author | Daniel Molkentin <danimo@owncloud.com> | 2015-05-06 18:01:05 +0300 |
---|---|---|
committer | Daniel Molkentin <danimo@owncloud.com> | 2015-05-06 18:01:05 +0300 |
commit | 77a28a81ebc2632398a1eb7103ce978563c33b27 (patch) | |
tree | 37a8379655765219f0afa35c55f4a05c976cf30e /test/mockserver/httpserver.h | |
parent | ee71024496d25e1392080a5ad2a17113bcd2e27a (diff) |
Bump to 1.9
Diffstat (limited to 'test/mockserver/httpserver.h')
-rw-r--r-- | test/mockserver/httpserver.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/mockserver/httpserver.h b/test/mockserver/httpserver.h new file mode 100644 index 000000000..010fd80c9 --- /dev/null +++ b/test/mockserver/httpserver.h @@ -0,0 +1,26 @@ +/* + * Copyright (C) by Daniel Molkentin <danimo@owncloud.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +#include <QTcpServer> + +class HttpServer : public QTcpServer + { + Q_OBJECT + public: + HttpServer(qint16 port, QObject* parent = 0); + void incomingConnection(int socket); + + private slots: + void readClient(); + void discardClient(); + }; |