summaryrefslogtreecommitdiff
path: root/src/remoteauth/remoteauthdialog.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/remoteauth/remoteauthdialog.hpp')
-rw-r--r--src/remoteauth/remoteauthdialog.hpp23
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;
+};