summaryrefslogtreecommitdiff
path: root/src/remoteauth/remoteauthclient.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-07-01 00:56:09 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2023-07-01 00:56:09 -0400
commit4ac7ca9245016616bbc77acf8e989e41729e1afd (patch)
tree4e7fdf999bec15cb1f4c7783e76a4ac8d496e317 /src/remoteauth/remoteauthclient.hpp
parent3b206e11216b383fae0e860e0092f71301fd4425 (diff)
downloadabaddon-portaudio-4ac7ca9245016616bbc77acf8e989e41729e1afd.tar.gz
abaddon-portaudio-4ac7ca9245016616bbc77acf8e989e41729e1afd.zip
finalize login
Diffstat (limited to 'src/remoteauth/remoteauthclient.hpp')
-rw-r--r--src/remoteauth/remoteauthclient.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/remoteauth/remoteauthclient.hpp b/src/remoteauth/remoteauthclient.hpp
index 178e10a..8fb8bc3 100644
--- a/src/remoteauth/remoteauthclient.hpp
+++ b/src/remoteauth/remoteauthclient.hpp
@@ -22,6 +22,9 @@ private:
void HandleGatewayNonceProof(const nlohmann::json &j);
void HandleGatewayPendingRemoteInit(const nlohmann::json &j);
void HandleGatewayPendingTicket(const nlohmann::json &j);
+ void HandleGatewayPendingLogin(const nlohmann::json &j);
+
+ void OnRemoteAuthLoginResponse(const std::optional<std::string> &encrypted_token, DiscordError err);
void Init();
@@ -57,8 +60,11 @@ private:
public:
using type_signal_fingerprint = sigc::signal<void(std::string)>;
+ using type_signal_token = sigc::signal<void(std::string)>;
type_signal_fingerprint signal_fingerprint();
+ type_signal_token signal_token();
private:
type_signal_fingerprint m_signal_fingerprint;
+ type_signal_token m_signal_token;
};