aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-10 11:53:58 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-10 11:55:24 +0100
commit5d2a7d977f9b0a1604e106f4e2b0c2c9b89c3235 (patch)
tree88622d3dd853a3642ac6f181952af3c7f73aed82 /plugins
parent60f37ebeb130bd58adece6bee06420b40c4e5a05 (diff)
Matrix: add settings page with join room and logout button
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index ac3ca3b..152c292 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -431,6 +431,25 @@ namespace QuickMedia {
const std::string title;
};
+ class MatrixSettingsPage : public Page {
+ public:
+ MatrixSettingsPage(Program *program, Matrix *matrix) : Page(program), matrix(matrix) {}
+ const char* get_title() const override { return "Settings"; }
+ PluginResult submit(const SubmitArgs &args, std::vector<Tab> &result_tabs) override;
+ private:
+ Matrix *matrix;
+ };
+
+ class MatrixRoomInputPage : public Page {
+ public:
+ MatrixRoomInputPage(Program *program, Matrix *matrix) : Page(program), matrix(matrix) {}
+ const char* get_title() const override { return "Enter the id of a room to join"; }
+ PluginResult submit(const SubmitArgs &args, std::vector<Tab> &result_tabs) override;
+ bool allow_submit_no_selection() const override { return true; }
+ private:
+ Matrix *matrix;
+ };
+
// Only play one video. TODO: Play all videos in room, as related videos?
class MatrixVideoPage : public VideoPage {
public: