#pragma once #include "appost.h" #include "apbase.h" #include "fields.h" #include #include // APQuestion represents an ActivityPub Question Object class APQuestion : public APPost { public: APQuestion(); // A post that will be built from strings, including attachments APQuestion(APObjectFields fields); ~APQuestion() {}; QString get_html_render(HtmlRenderDetails render_info); protected: struct PollOption { QString name; int votes; }; typedef std::vector PollOptionList; QDateTime end_time; QDateTime closed_time; int total_votes = 0; PollOptionList options; QString get_html_poll_options(HtmlRenderDetails render_info); };