diff options
Diffstat (limited to 'src/httpservice.h')
| -rw-r--r-- | src/httpservice.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/httpservice.h b/src/httpservice.h deleted file mode 100644 index 0fbd54d..0000000 --- a/src/httpservice.h +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once - -// qt -#include <QHostAddress> -#include <QHttpServerResponse> -// #include <QObject> - -class ICamera; -class QHttpServer; - -class HttpServer // : public QObject -{ - // Q_OBJECT - -private: - struct Stats - { - uint64_t GET_pixels_us{0}; - } m_stats{0}; - -public: - static constexpr auto DefaultAddress = QHostAddress::Any; - static constexpr uint16_t DefaultPort{8080}; - -public: - explicit HttpServer(ICamera *camera, - // QObject *parent = nullptr, - const QHostAddress &address = DefaultAddress, - const uint16_t port = DefaultPort); - - // TODO: methods starting with GET_/POST_ will be routed automatically -public: - QHttpServerResponse GET_pixels(); - -private: - // std::weak_ptr<ICamera> m_camera; - ICamera *m_camera{nullptr}; - QHostAddress m_address{DefaultAddress}; - uint16_t m_port{DefaultPort}; - - std::shared_ptr<QHttpServer> m_server; -}; |
