24 #include "model/ImageInfo.h"
26 #include <aspect/blackboard.h>
27 #include <aspect/clock.h>
28 #include <aspect/configurable.h>
29 #include <aspect/logging.h>
30 #include <aspect/thread_producer.h>
31 #include <aspect/webview.h>
32 #include <core/threading/thread.h>
33 #include <webview/rest_api.h>
34 #include <webview/rest_array.h>
41 class WebviewJpegStreamProducer;
63 std::shared_ptr<fawkes::WebviewJpegStreamProducer> get_stream(
const std::string &image_id);
69 std::map<std::string, std::shared_ptr<fawkes::WebviewJpegStreamProducer>> streams_;
REST API backend for the image.
virtual void loop()
Code to execute in the thread.
virtual void init()
Initialize the thread.
~ImageRestApi()
Destructor.
ImageRestApi()
Constructor.
virtual void finalize()
Finalize the thread.
Container to return array via REST.
Thread aspect to access to BlackBoard.
Thread aspect that allows to obtain the current time from the clock.
Thread aspect to access configuration data.
Thread aspect to log output.
Aspect for thread producing threads.
Thread class encapsulation of pthreads.
Thread aspect to provide web pages via Webview.
Webview REST API component.
REST parameters to pass to handlers.
Fawkes library namespace.