Emergency 20 Dokumentation  4.2.0
ForcePatchDialog.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 //[-------------------------------------------------------]
13 #include <qsf/gui/GuiDocument.h>
14 #include <qsf/job/JobProxy.h>
15 
16 
17 //[-------------------------------------------------------]
18 //[ Namespace ]
19 //[-------------------------------------------------------]
20 namespace em5
21 {
22 
23 
24  //[-------------------------------------------------------]
25  //[ Classes ]
26  //[-------------------------------------------------------]
32  {
33 
34 
35  //[-------------------------------------------------------]
36  //[ Public definitions ]
37  //[-------------------------------------------------------]
38  public:
40  {
44  };
45 
46 
47  //[-------------------------------------------------------]
48  //[ Public methods ]
49  //[-------------------------------------------------------]
50  public:
55  explicit ForcePatchDialog(qsf::GuiContext& guiContext);
56 
61  virtual ~ForcePatchDialog();
62 
63 
64  //[-------------------------------------------------------]
65  //[ Public virtual qsf::GuiDocument methods ]
66  //[-------------------------------------------------------]
67  public:
68  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
69 
70 
71  //[-------------------------------------------------------]
72  //[ Private virtual qsf::GuiDocument methods ]
73  //[-------------------------------------------------------]
74  private:
75  virtual bool onPreShow() override;
76 
77 
78  //[-------------------------------------------------------]
79  //[ Private methods ]
80  //[-------------------------------------------------------]
81  private:
82  void setPercentage(float percentage);
83  void setCompletePercentage(float percentage);
84 
85  void onUpdateAnimation(const qsf::JobArguments& jobArguments);
86 
87  void onUpdateProgress(uint32 currentFile, uint32 totalFiles, uint64 currentBytes, uint64 totalBytes);
88  void onUpdateFailed();
89 
90 
91  //[-------------------------------------------------------]
92  //[ Private data ]
93  //[-------------------------------------------------------]
94  private:
95  qsf::JobProxy mAnimationJobProxy;
96  AnimationState mState;
97  bool mBack;
98 
99 
100  };
101 
102 
103 //[-------------------------------------------------------]
104 //[ Namespace ]
105 //[-------------------------------------------------------]
106 } // em5
Definition: ForcePatchDialog.h:41
Definition: ActionPriority.h:13
Job proxy class.
Definition: JobProxy.h:51
AnimationState
Definition: ForcePatchDialog.h:39
ForcePatchDialog(qsf::GuiContext &guiContext)
Constructor.
unsigned int uint32
Definition: PlatformTypes.h:181
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override
Graphical User Interface (GUI) document base class.
Definition: GuiDocument.h:51
uint64_t uint64
Definition: PlatformTypes.h:184
Job arguments class: holds data to be passed to the called job method by the job manager.
Definition: JobArguments.h:40
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
Definition: ForcePatchDialog.h:42
AnimationState
Definition: IngameMainEventSuccessWindow.h:26
virtual ~ForcePatchDialog()
Destructor.
Definition: ForcePatchDialog.h:43
EMERGENCY 5 force patch dialog window GUI.
Definition: ForcePatchDialog.h:31