From 3b206e11216b383fae0e860e0092f71301fd4425 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 30 Jun 2023 20:43:08 -0400 Subject: remote auth impl. up to QR code display --- src/remoteauth/remoteauthdialog.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/remoteauth/remoteauthdialog.hpp (limited to 'src/remoteauth/remoteauthdialog.hpp') diff --git a/src/remoteauth/remoteauthdialog.hpp b/src/remoteauth/remoteauthdialog.hpp new file mode 100644 index 0000000..24fad56 --- /dev/null +++ b/src/remoteauth/remoteauthdialog.hpp @@ -0,0 +1,23 @@ +#pragma once +#include +#include "remoteauthclient.hpp" + +class RemoteAuthDialog : public Gtk::Dialog { +public: + RemoteAuthDialog(Gtk::Window &parent); + std::string GetToken(); + +protected: + Gtk::Image m_image; + Gtk::Box m_layout; + Gtk::Button m_ok; + Gtk::Button m_cancel; + Gtk::ButtonBox m_bbox; + +private: + RemoteAuthClient m_ra; + + void OnFingerprint(const std::string &fingerprint); + + std::string m_token; +}; -- cgit v1.2.3