From fc1ca42ed5a1b2d83a1dc8f94709a057b8e28e9d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 8 Mar 2018 06:07:15 +0300 Subject: Add support for change pin code by server request. --- src/progs/dyecmd/client.cpp | 4 ++++ src/progs/dyecmd/client.h | 2 ++ src/progs/manaplus/client.cpp | 13 +++++++++++++ src/progs/manaplus/client.h | 2 ++ 4 files changed, 21 insertions(+) (limited to 'src/progs') diff --git a/src/progs/dyecmd/client.cpp b/src/progs/dyecmd/client.cpp index 40b2ad48f..353d4718f 100644 --- a/src/progs/dyecmd/client.cpp +++ b/src/progs/dyecmd/client.cpp @@ -809,6 +809,10 @@ void Client::focusWindow() } } +void Client::updatePinState() +{ +} + void Client::logVars() { #ifdef ANDROID diff --git a/src/progs/dyecmd/client.h b/src/progs/dyecmd/client.h index 89dd82e11..6b110ccbd 100644 --- a/src/progs/dyecmd/client.h +++ b/src/progs/dyecmd/client.h @@ -74,6 +74,8 @@ class Client final : public ActionListener void windowRemoved(const Window *const window); + void updatePinState(); + void focusWindow(); void slowLogic(); diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp index 504916ea7..4b9132b53 100644 --- a/src/progs/manaplus/client.cpp +++ b/src/progs/manaplus/client.cpp @@ -1861,6 +1861,19 @@ void Client::focusWindow() } } +void Client::updatePinState() +{ + if (mCurrentDialog == nullptr || + mState != State::CHAR_SELECT) + { + return; + } + CharSelectDialog *const dialog = + dynamic_cast(mCurrentDialog); + if (dialog != nullptr) + pincodeManager.updateState(); +} + void Client::logVars() { #ifdef ANDROID diff --git a/src/progs/manaplus/client.h b/src/progs/manaplus/client.h index 28ab7323e..0cd26f454 100644 --- a/src/progs/manaplus/client.h +++ b/src/progs/manaplus/client.h @@ -90,6 +90,8 @@ class Client final : public ConfigListener, void focusWindow(); + void updatePinState(); + void slowLogic(); ServerInfo &getCurrentServer() -- cgit v1.2.3-70-g09d2