X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2FguiPasswordChange.h;h=d9d21e7c4223244c9dfb315420bfcf94b4620a47;hb=3caad3f3c9e319ca67d63231e8c64b2ace855fff;hp=aecc7076fedcc5a10709a81e0dc666f955337562;hpb=979ca23f1eae1adeb8b0083dffe7203c54d87395;p=oweals%2Fminetest.git diff --git a/src/guiPasswordChange.h b/src/guiPasswordChange.h index aecc7076f..d9d21e7c4 100644 --- a/src/guiPasswordChange.h +++ b/src/guiPasswordChange.h @@ -27,12 +27,10 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. class GUIPasswordChange : public GUIModalMenu { public: - GUIPasswordChange(gui::IGUIEnvironment* env, - gui::IGUIElement* parent, s32 id, - IMenuManager *menumgr, - Client* client); + GUIPasswordChange(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, + IMenuManager *menumgr, Client *client); ~GUIPasswordChange(); - + void removeChildren(); /* Remove and re-add (or reposition) stuff @@ -41,14 +39,17 @@ public: void drawMenu(); - bool acceptInput(); + void acceptInput(); - bool OnEvent(const SEvent& event); - -private: - Client* m_client; + bool processInput(); + + bool OnEvent(const SEvent &event); +private: + Client *m_client; + std::wstring m_oldpass = L""; + std::wstring m_newpass = L""; + std::wstring m_newpass_confirm = L""; }; #endif -