wavelength 1.0.0
Loading...
Searching...
No Matches
netinetconnect.h
Go to the documentation of this file.
1#pragma once
2
4#include "met/errorscreen.h"
8#include "script/dataarray.h"
9#include "ui/uiscreen.h"
11
20class NetInetConnect : public ErrorScreen, public MemcardUser {
21public:
29 explicit NetInetConnect(DataArray *pData);
30
37 ~NetInetConnect() override {
38 }
39
48 static UIScreen *New(DataArray *pData) {
49 return new NetInetConnect(pData);
50 }
51
59 const char *Title() override {
60 return "";
61 }
62
70 void OnCardStatus(int nStatus) override;
71
81 bool DispatchPriv(Message *pMsg) override;
82
84 void SetConfig(int nConfig) {
85 mConfig = nConfig;
86 }
87
88private:
97 bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg);
98
107 bool HandleStatus(InetConnectStatusMsg *pMsg);
108
117 bool HandleResult(InetConnectResultMsg *pMsg);
118
127 bool HandleJoypad(JoypadInputMsg *pMsg);
128
129 int mReservedA4[3]; // +0xa4, not yet recovered.
130
131 int mConfig;
132
133 int mConnecting; // +0xb4, whether NetInet::Connect() is under way.
134
135 int mReservedB8[2]; // +0xb8, not yet recovered.
136};
Reference-counted array of script data nodes.
Definition dataarray.h:20
ErrorScreen(DataArray *pData)
Construct the screen from its script description.
Message that reports the outcome of NetInet::Connect().
Definition inetconnectresultmsg.h:14
Message that reports the progress of NetInet::Connect().
Definition inetconnectstatusmsg.h:14
Message the controller poll sends when a button is pressed or released.
Definition joypadinputmsg.h:23
Receiver of the outcome of the memory card work MCManager runs.
Definition memcarduser.h:19
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition netinetconnect.h:48
NetInetConnect(DataArray *pData)
Construct the screen from its script description.
bool DispatchPriv(Message *pMsg) override
Route the connection messages, the end of a transition, and the controller to their handlers.
const char * Title() override
Report the empty title of the screen.
Definition netinetconnect.h:59
~NetInetConnect() override
Destroy the screen.
Definition netinetconnect.h:37
void SetConfig(int nConfig)
Definition netinetconnect.h:84
void OnCardStatus(int nStatus) override
Connect once the memory card checks out, or show the memory card failure.
UIScreen(DataArray *pData)
Construct a screen from its script description.
Message a screen sends itself once its panels have finished their entry animations.
Definition uitransitioncompletemsg.h:23