]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/guiPasswordChange.h
Fix Android node selection distance (#6187)
[dragonfireclient.git] / src / guiPasswordChange.h
index 1748baadeafdedf010b65b0713046d8e1b1b48a0..59f3513b28e69236928a1503471e52282e50a91f 100644 (file)
@@ -1,7 +1,7 @@
 /*
-Part of Minetest-c55
-Copyright (C) 2010-11 celeron55, Perttu Ahola <celeron55@gmail.com>
-Copyright (C) 2011 Ciaran Gultnieks <ciaran@ciarang.com>
+Part of Minetest
+Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
+Copyright (C) 2013 Ciaran Gultnieks <ciaran@ciarang.com>
 
 Permission to use, copy, modify, and distribute this software for any
 purpose with or without fee is hereby granted, provided that the above
@@ -16,24 +16,21 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */
 
-#ifndef GUIPASSWORDCHANGE_HEADER
-#define GUIPASSWORDCHANGE_HEADER
+#pragma once
 
-#include "common_irrlicht.h"
+#include "irrlichttypes_extrabloated.h"
 #include "modalMenu.h"
-#include "utility.h"
-#include "client.h"
 #include <string>
 
+class Client;
+
 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
@@ -42,14 +39,15 @@ class GUIPasswordChange : public GUIModalMenu
 
        void drawMenu();
 
-       bool acceptInput();
+       void acceptInput();
 
-       bool OnEvent(const SEvent& event);
-       
-private:
-       Client* m_client;
+       bool processInput();
 
-};
-
-#endif
+       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"";
+};