ScummVM API documentation
dialog-sessionselector.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef SCUMM_DIALOG_SESSION_SELECTOR_H
23 #define SCUMM_DIALOG_SESSION_SELECTOR_H
24 
25 #include "gui/dialog.h"
26 #include "gui/widgets/edittext.h"
27 #include "gui/widgets/list.h"
28 #include "common/fs.h"
29 #include "common/hashmap.h"
30 #include "common/stack.h"
31 #include "common/str.h"
32 
33 #include "scumm/he/intern_he.h"
34 #include "scumm/he/net/net_main.h"
35 #include "scumm/he/net/net_defines.h"
36 
37 namespace Scumm {
38 
39 class StaticTextWidget;
40 
41 class SessionSelectorDialog : public Dialog {
42 public:
43  SessionSelectorDialog(Scumm::ScummEngine_v90he *vm);
44 
45  void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data) override;
46  void handleTickle() override;
47 
48 private:
49  ScummEngine_v90he *_vm;
50 
51  uint32 _timestamp;
52 
53  GUI::Widget *_joinButton;
54  GUI::StaticTextWidget *_queryProgressText;
55 
56  GUI::EditTextWidget *_playerName;
57 
58  GUI::ListWidget *_list;
59 };
60 
61 
62 } // End of namespace Scumm
63 
64 #endif
Definition: edittext.h:32
Definition: widget.h:205
Definition: dialog-sessionselector.h:41
Definition: list.h:51
Definition: dialog.h:49
Definition: widget.h:101
Definition: actor.h:30
Definition: object.h:40