wavelength 1.0.0
Loading...
Searching...
No Matches
formatscreen.h
Go to the documentation of this file.
1#pragma once
2
4#include "met/errorscreen.h"
5#include "script/dataarray.h"
6#include "ui/uiscreen.h"
8
17class FormatScreen : public ErrorScreen, public MemcardUser {
18public:
26 explicit FormatScreen(DataArray *pData) : ErrorScreen(pData) {
27 }
28
35 ~FormatScreen() override {
36 }
37
46 static UIScreen *New(DataArray *pData) {
47 return new FormatScreen(pData);
48 }
49
57 const char *Title() override {
58 return "";
59 }
60
69 bool DispatchPriv(Message *pMsg) override;
70
78 void OnCardFormatted(int nStatus) override;
79
80private:
89 bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg);
90};
Reference-counted array of script data nodes.
Definition dataarray.h:20
ErrorScreen(DataArray *pData)
Construct the screen from its script description.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition formatscreen.h:46
bool DispatchPriv(Message *pMsg) override
Route the end of the entry to HandleTransitionComplete().
~FormatScreen() override
Destroy the screen.
Definition formatscreen.h:35
FormatScreen(DataArray *pData)
Construct the screen from its script description.
Definition formatscreen.h:26
const char * Title() override
Report the empty title of the screen.
Definition formatscreen.h:57
void OnCardFormatted(int nStatus) override
Go to the done screen after the format, or open the dialog of the failure.
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
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