wavelength 1.0.0
Loading...
Searching...
No Matches
netchangepasswordscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/keyboarduser.h"
6#include "os/string.h"
7#include "script/dataarray.h"
10#include "ui/uiscreen.h"
12
21public:
30
38 }
39
48 static UIScreen *New(DataArray *pData) {
49 return new NetChangePasswordScreen(pData);
50 }
51
60 bool DispatchPriv(Message *pMsg) override;
61
72 void Enter(UIScreen *pPrevScreen, float fTime) override;
73
82 int ReceiveKeyboardText(const char *pszText) override;
83
84private:
94 void Submit();
95
105 void OpenKeyboard(const char *pszEntry);
106
118 bool HandleJoypad(JoypadInputMsg *pMsg);
119
130 bool HandleFocusChange(UIComponentFocusChangeMsg *pMsg);
131
142 bool HandleSelect(UIComponentSelectMsg *pMsg);
143
154 bool HandleTextEntryComplete(UITextEntryCompleteMsg *pMsg);
155
156 String mKeyboardText;
157 String mKeyboardEntry;
158 String mOld;
159 String mNew;
160 String mConfirm;
161};
Reference-counted array of script data nodes.
Definition dataarray.h:20
Message the controller poll sends when a button is pressed or released.
Definition joypadinputmsg.h:23
Mix-in for a screen that receives the text the player types on the front-end keyboard.
Definition keyboarduser.h:9
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
int ReceiveKeyboardText(const char *pszText) override
Take the text the keyboard typed.
NetChangePasswordScreen(DataArray *pData)
Construct a screen with empty entries.
static UIScreen * New(DataArray *pData)
Produce a screen on the heap.
Definition netchangepasswordscreen.h:48
~NetChangePasswordScreen() override
Release the screen.
Definition netchangepasswordscreen.h:37
void Enter(UIScreen *pPrevScreen, float fTime) override
Enter and fill the entries back from before the keyboard.
bool DispatchPriv(Message *pMsg) override
Route the controller, focus, choice, and text entry messages.
NetPasswordScreen(DataArray *pData)
Construct a screen that saves the password.
Growable text buffer that is also a PrnStream.
Definition string.h:19
Message a panel sends before it moves its focus to another component.
Definition uicomponentfocuschangemsg.h:26
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIScreen(DataArray *pData)
Construct a screen from its script description.
Message a text entry sends when the player confirms the text.
Definition uitextentrycompletemsg.h:25