Emergency 20 Dokumentation  4.2.0
MultiplayerCreateServerWindow.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
16 
17 #include <Rocket/Core/String.h>
18 
19 
20 //[-------------------------------------------------------]
21 //[ Forward declarations ]
22 //[-------------------------------------------------------]
23 namespace Rocket
24 {
25  namespace Controls
26  {
27  class ElementFormControlSelect;
28  }
29 }
30 
31 
32 //[-------------------------------------------------------]
33 //[ Namespace ]
34 //[-------------------------------------------------------]
35 namespace em5
36 {
37 
38 
39  //[-------------------------------------------------------]
40  //[ Classes ]
41  //[-------------------------------------------------------]
47  {
48 
49 
50  //[-------------------------------------------------------]
51  //[ Public methods ]
52  //[-------------------------------------------------------]
53  public:
54  explicit MultiplayerCreateServerWindow(qsf::GuiContext& guiContext);
55 
56 
57  //[-------------------------------------------------------]
58  //[ Public virtual qsf::GuiDocument methods ]
59  //[-------------------------------------------------------]
60  public:
61  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
62 
63 
64  //[-------------------------------------------------------]
65  //[ Protected virtual em5::MainMenuWindowBase methods ]
66  //[-------------------------------------------------------]
67  protected:
68  virtual void onGoingBack() override;
69 
70 
71  //[-------------------------------------------------------]
72  //[ Protected virtual em5::GuiHotReloadSupport methods ]
73  //[-------------------------------------------------------]
74  protected:
75  virtual void onReloadGui() override;
76 
77 
78  //[-------------------------------------------------------]
79  //[ Private methods ]
80  //[-------------------------------------------------------]
81  private:
82  void setupUI();
83  bool createMultiplayerHostingSession();
84  void addMapToList(Rocket::Controls::ElementFormControlSelect& selectControl, const std::string& mapName, const MapIdentifier& mapIdentifier);
85 
86 
87  //[-------------------------------------------------------]
88  //[ Private data ]
89  //[-------------------------------------------------------]
90  private:
91  multiplayer::HostEntry mHostEntry;
92  Rocket::Core::String mPassword;
93  Rocket::Core::String mUsername;
94  bool mClearServerNameOnce;
95  bool mClearPasswordOnce;
96 
97 
98  };
99 
100 
101 //[-------------------------------------------------------]
102 //[ Namespace ]
103 //[-------------------------------------------------------]
104 } // em5
Definition: ActionPriority.h:13
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override
Definition: OverlayComponent.h:29
Base window for main menu windows.
Definition: MainMenuWindowBase.h:40
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
virtual void onGoingBack() override
EMERGENCY 5 map identifier class.
Definition: MapIdentifier.h:34
Definition: MiniMapWindow.h:43
virtual void onReloadGui() override
Gets called when the GUI should be reloaded.
MultiplayerCreateServerWindow(qsf::GuiContext &guiContext)
Multiplayer create server window.
Definition: MultiplayerCreateServerWindow.h:46
Definition: MatchmakingTypes.h:47