summaryrefslogtreecommitdiff
path: root/src/protocols/httpserver.h
diff options
context:
space:
mode:
authorNikita Kostovsky <nikita@kostovsky.me>2026-03-06 20:40:29 +0100
committerNikita Kostovsky <nikita@kostovsky.me>2026-03-06 20:40:29 +0100
commit05f0938a65c4f8c330791097680e1e094260bb60 (patch)
treed11e48c96eed6de03c51b793081310d96dee8618 /src/protocols/httpserver.h
parent051cb23a807a6914e2cda7e3b08d69ed29f347dd (diff)
refactoring
Diffstat (limited to 'src/protocols/httpserver.h')
-rw-r--r--src/protocols/httpserver.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/protocols/httpserver.h b/src/protocols/httpserver.h
index e3ca66f..320ce00 100644
--- a/src/protocols/httpserver.h
+++ b/src/protocols/httpserver.h
@@ -9,7 +9,7 @@
// orpheus
#include "iprotocol.h"
-class ICamera;
+class IScanner;
class QHttpServer;
class HttpServer : public IProtocol
@@ -25,7 +25,7 @@ public:
static constexpr uint16_t DefaultPort{8080};
public:
- explicit HttpServer(std::shared_ptr<ICamera> camera,
+ explicit HttpServer(std::shared_ptr<IScanner> scanner,
const QHostAddress &address = DefaultAddress,
const uint16_t port = DefaultPort);
~HttpServer() override = default;
@@ -45,6 +45,7 @@ public:
*/
QFuture<QHttpServerResponse> GET_image_async();
QHttpServerResponse GET_pixels();
+ QHttpServerResponse GET_profile();
QHttpServerResponse POST_params(const QHttpServerRequest &request);
QHttpServerResponse GET_params();