deCONZ C++ API v2.6.1
Loading...
Searching...
No Matches
http_client_handler.h
1#ifndef DECONZ_HTTP_CLIENT_HANDLER_H
2#define DECONZ_HTTP_CLIENT_HANDLER_H
3
4/*
5 * Copyright (c) 2012-2023 dresden elektronik ingenieurtechnik gmbh.
6 * All rights reserved.
7 *
8 * The software in this package is published under the terms of the BSD
9 * style license a copy of which has been included with this distribution in
10 * the LICENSE.txt file.
11 *
12 */
13
14#include <deconz/types.h>
15#include "deconz/declspec.h"
16
17class QTcpSocket;
18class QHttpRequestHeader;
19
20namespace deCONZ
21{
22
23class DECONZ_DLLSPEC HttpClientHandler
24{
25public:
26 /*enum Status
27 {
28 StatusOk = 0,
29 StatusBusy = -1,
30 StatusNoNetwork = -2
31 };*/
32
34 virtual ~HttpClientHandler();
35 virtual bool isHttpTarget(const QHttpRequestHeader &hdr) = 0;
42 virtual int handleHttpRequest(const QHttpRequestHeader &hdr, QTcpSocket *sock) = 0;
43 virtual void clientGone(QTcpSocket *sock) = 0;
44};
45
46} // namespace deCONZ
47
48#endif // DECONZ_HTTP_CLIENT_HANDLER_H
Definition http_client_handler.h:24
virtual int handleHttpRequest(const QHttpRequestHeader &hdr, QTcpSocket *sock)=0
handleHttpRequest
The deCONZ namespace.
Definition aps.cpp:19
Declaration of the most common deCONZ library types.