Emergency 20 Dokumentation  4.2.0
AccountInfo.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 //[-------------------------------------------------------]
14 
15 
16 //[-------------------------------------------------------]
17 //[ Forward declarations ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21  class OnlineAccountData;
22 }
23 
24 
25 //[-------------------------------------------------------]
26 //[ Namespace ]
27 //[-------------------------------------------------------]
28 namespace em5
29 {
30 
31 
32  //[-------------------------------------------------------]
33  //[ Classes ]
34  //[-------------------------------------------------------]
40  {
41 
42 
43  //[-------------------------------------------------------]
44  //[ Public methods ]
45  //[-------------------------------------------------------]
46  public:
47  AccountInfo(qsf::GuiContext& guiContext, bool launcherMenu = false);
48  void fillAccountField(const OnlineAccountData& entry);
49 
50 
51  //[-------------------------------------------------------]
52  //[ Protected virtual em5::GuiHotReloadSupport methods ]
53  //[-------------------------------------------------------]
54  protected:
55  virtual void onReloadGui() override;
56 
57 
58  //[-------------------------------------------------------]
59  //[ Private methods ]
60  //[-------------------------------------------------------]
61  private:
62  void setupGui();
63  void onAccountDataChangedMessage(const qsf::MessageParameters& params);
64 
65 
66  //[-------------------------------------------------------]
67  //[ Private data ]
68  //[-------------------------------------------------------]
69  private:
70  bool mForLauncherMenu;
71  qsf::MessageProxy mAccountDataChangedMessageProxy;
72 
73 
74  };
75 
76 
77 //[-------------------------------------------------------]
78 //[ Namespace ]
79 //[-------------------------------------------------------]
80 } // em5
Definition: ActionPriority.h:13
Message parameters class.
Definition: MessageParameters.h:34
AccountInfo(qsf::GuiContext &guiContext, bool launcherMenu=false)
A base class which adds GUI hot reloading support to an GUI document.
Definition: GuiHotReloadSupport.h:34
Message listener proxy class.
Definition: MessageProxy.h:47
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
virtual void onReloadGui() override
Gets called when the GUI should be reloaded.
void fillAccountField(const OnlineAccountData &entry)
Definition: AccountManager.h:50
Account info window.
Definition: AccountInfo.h:39