diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-06-30 20:43:08 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-06-30 20:43:08 -0400 |
commit | 3b206e11216b383fae0e860e0092f71301fd4425 (patch) | |
tree | 857c4fbd120ffe37bef5a108dcbe5e322a45ae14 /src/remoteauth/remoteauthdialog.hpp | |
parent | ec6f18ff1204889afd63f08f255d00ae3a1ef12b (diff) | |
download | abaddon-portaudio-3b206e11216b383fae0e860e0092f71301fd4425.tar.gz abaddon-portaudio-3b206e11216b383fae0e860e0092f71301fd4425.zip |
remote auth impl. up to QR code display
Diffstat (limited to 'src/remoteauth/remoteauthdialog.hpp')
-rw-r--r-- | src/remoteauth/remoteauthdialog.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
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 <gtkmm/dialog.h> +#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; +}; |