wavelength 1.0.0
Loading...
Searching...
No Matches
netdodownloadscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
5#ifdef VIDEO_STANDARD_PAL
7#endif
8#include "os/string.h"
9#include "script/dataarray.h"
10#include "ui/uiscreen.h"
12
19public:
28
36 }
37
46 static UIScreen *New(DataArray *pData) {
47 return new NetDoDownloadScreen(pData);
48 }
49
58 bool DispatchPriv(Message *pMsg) override;
59
67 const char *Title() override {
68 return "";
69 }
70
71#ifdef VIDEO_STANDARD_PAL
73 static constexpr int kNoUploadIndex = -1;
74
75#endif
76
78 void SetFile(const char *pszFile) {
79 mFile = pszFile;
80 }
81
83 void SetRemixName(const char *pszRemixName) {
84 mRemixName = pszRemixName;
85 }
86
87#ifdef VIDEO_STANDARD_PAL
89 void SetUploadIndex(int nUploadIndex) {
90 mUploadIndex = nUploadIndex;
91 }
92
93#endif
94
95private:
105 void ShowProgress(float fProgress);
106
117 bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg);
118
129 bool HandleRepoRemixStatus(RepoRemixStatusMsg *pMsg);
130
131#ifdef VIDEO_STANDARD_PAL
144 bool HandleRemixDownload(RemixDownloadMsg *pMsg);
145#endif
146 String mRemixName;
147 String mFile;
148#ifdef VIDEO_STANDARD_PAL
150 int mUploadIndex = kNoUploadIndex;
151#endif
152};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
bool DispatchPriv(Message *pMsg) override
Route the status of the download and the end of the entry.
static UIScreen * New(DataArray *pData)
Produce a screen on the heap.
Definition netdodownloadscreen.h:46
~NetDoDownloadScreen() override
Release the screen.
Definition netdodownloadscreen.h:35
void SetRemixName(const char *pszRemixName)
Definition netdodownloadscreen.h:83
void SetFile(const char *pszFile)
Definition netdodownloadscreen.h:78
const char * Title() override
Report no title.
Definition netdodownloadscreen.h:67
NetDoDownloadScreen(DataArray *pData)
Construct a screen with no remix.
UIScreen(DataArray *pData)
Construct a screen from its script description.