1
// Copyright (c) 2016- PPSSPP Project.
3
// This program is free software: you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation, version 2.0 or later versions.
7
// This program is distributed in the hope that it will be useful,
8
// but WITHOUT ANY WARRANTY; without even the implied warranty of
9
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
// GNU General Public License 2.0 for more details.
12
// A copy of the GPL 2.0 should have been included with the program.
13
// If not, see http://www.gnu.org/licenses/
15
// Official git repository and contact information can be found at
16
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
20
#include "base/functional.h"
21
#include "ui/ui_screen.h"
22
#include "ui/viewgroup.h"
23
#include "UI/MiscScreens.h"
24
#include "UI/MainScreen.h"
30
class recursive_mutex;
32
class RemoteISOScreen : public UIScreenWithBackground {
37
void update(InputState &input) override;
38
void CreateViews() override;
40
UI::EventReturn HandleStartServer(UI::EventParams &e);
41
UI::EventReturn HandleStopServer(UI::EventParams &e);
42
UI::EventReturn HandleBrowse(UI::EventParams &e);
48
enum class ScanStatus {
57
class RemoteISOConnectScreen : public UIScreenWithBackground {
59
RemoteISOConnectScreen();
60
~RemoteISOConnectScreen() override;
63
void update(InputState &input) override;
64
void CreateViews() override;
66
ScanStatus GetStatus();
70
UI::TextView *statusView_;
74
std::thread *scanThread_;
75
recursive_mutex *statusLock_;
78
std::vector<std::string> games_;
81
class RemoteISOBrowseScreen : public MainScreen {
83
RemoteISOBrowseScreen(const std::vector<std::string> &games);
86
void CreateViews() override;
88
std::vector<std::string> games_;