11 #ifndef CXHTTPREQUESTHANDLER_H
12 #define CXHTTPREQUESTHANDLER_H
17 #include "org_custusx_webserver_Export.h"
35 void handle_request(QHttpRequest *req, QHttpResponse *resp);
38 void handle_complete_request(QHttpRequest *req, QHttpResponse *resp);
39 void process_mainpage(QHttpRequest *req, QHttpResponse *resp);
41 void handle_screen(QHttpRequest *req, QHttpResponse *resp);
42 void process_screen(QHttpRequest *req, QHttpResponse *resp);
44 void handle_layout(QHttpRequest *req, QHttpResponse *resp);
45 void process_display(QHttpRequest *req, QHttpResponse *resp);
46 void process_stream(QHttpRequest *req, QHttpResponse *resp);
47 void process_layout(QHttpRequest *req, QHttpResponse *resp);
49 void reply_mainpage(QHttpResponse *resp);
50 void reply_screenshot(QHttpResponse *resp);
51 void reply_notfound(QHttpResponse *resp);
52 void reply_method_not_allowed(QHttpResponse *resp);
53 void reply_layout_list(QHttpResponse *resp);
54 void get_display_image(QHttpResponse *resp);
55 void create_display(QHttpRequest *req, QHttpResponse *resp);
56 void delete_display(QHttpResponse *resp);
57 virtual void create_stream(QHttpRequest *req, QHttpResponse *resp);
58 virtual void delete_stream(QHttpResponse *resp);
66 void onRequestSuccessful();
70 RequestType(QHttpRequest *req_, QHttpResponse *resp_) : req(req_), resp(resp_) {}
74 QList<RequestType> mRequests;
77 QByteArray generatePNGEncoding(QImage image);
83 #endif // CXHTTPREQUESTHANDLER_H