32 #ifndef CXHTTPREQUESTHANDLER_H
33 #define CXHTTPREQUESTHANDLER_H
38 #include "org_custusx_webserver_Export.h"
56 void handle_request(QHttpRequest *req, QHttpResponse *resp);
59 void handle_complete_request(QHttpRequest *req, QHttpResponse *resp);
60 void process_mainpage(QHttpRequest *req, QHttpResponse *resp);
62 void handle_screen(QHttpRequest *req, QHttpResponse *resp);
63 void process_screen(QHttpRequest *req, QHttpResponse *resp);
65 void handle_layout(QHttpRequest *req, QHttpResponse *resp);
66 void process_display(QHttpRequest *req, QHttpResponse *resp);
67 void process_stream(QHttpRequest *req, QHttpResponse *resp);
68 void process_layout(QHttpRequest *req, QHttpResponse *resp);
70 void reply_mainpage(QHttpResponse *resp);
71 void reply_screenshot(QHttpResponse *resp);
72 void reply_notfound(QHttpResponse *resp);
73 void reply_method_not_allowed(QHttpResponse *resp);
74 void reply_layout_list(QHttpResponse *resp);
75 void get_display_image(QHttpResponse *resp);
76 void create_display(QHttpRequest *req, QHttpResponse *resp);
77 void delete_display(QHttpResponse *resp);
78 virtual void create_stream(QHttpRequest *req, QHttpResponse *resp);
79 virtual void delete_stream(QHttpResponse *resp);
87 void onRequestSuccessful();
91 RequestType(QHttpRequest *req_, QHttpResponse *resp_) : req(req_), resp(resp_) {}
95 QList<RequestType> mRequests;
98 QByteArray generatePNGEncoding(QImage image);
104 #endif // CXHTTPREQUESTHANDLER_H
virtual QString getAdditionalMainPageDescription() const
boost::shared_ptr< class RemoteAPI > RemoteAPIPtr