ezEngine  Milestone 9
Main.h
1 #pragma once
2 
4 #include <Foundation/Communication/RemoteInterface.h>
5 #include <Foundation/Types/UniquePtr.h>
6 #include <FileservePlugin/Fileserver/Fileserver.h>
7 
18 {
19 public:
20  typedef ezApplication SUPER;
21 
22  ezFileserverApp() : ezApplication("Fileserve")
23  {
24  }
25 
26  virtual void BeforeCoreSystemsStartup() override;
27  virtual void AfterCoreSystemsStartup() override;
28  virtual void BeforeCoreSystemsShutdown() override;
29 
30  virtual ezApplication::ApplicationExecution Run() override;
31  void FileserverEventHandlerConsole(const ezFileserverEvent& e);
32  void FileserverEventHandler(const ezFileserverEvent& e);
33 
34  ezUInt32 m_uiSleepCounter = 0;
35  ezUInt32 m_uiConnections = 0;
36  ezTime m_CloseAppTimeout;
37  ezTime m_TimeTillClosing;
38 
39 
40 };
41 
Definition: Fileserver.h:12
virtual void BeforeCoreSystemsStartup() override
This function is called before any kind of engine initialization is done.
Definition: Main.cpp:58
virtual void AfterCoreSystemsStartup() override
This function is called after basic engine initialization has been done.
Definition: App.cpp:12
ezApplication(const char *szAppName)
Constructor.
Definition: Application.cpp:7
A stand-alone application for the ezFileServer.
Definition: Main.h:17
The time class encapsulates a double value storing the time in seconds.
Definition: Time.h:10
ApplicationExecution
Defines the possible return values for the ezApplication::Run() function.
Definition: Application.h:68
Base class to be used by applications based on ezEngine.
Definition: Application.h:62
virtual ezApplication::ApplicationExecution Run() override
Main run function which is called periodically. This function must be overridden. ...
Definition: App.cpp:57
virtual void BeforeCoreSystemsShutdown() override
This function is called after the application main loop has run for the last time, before engine deinitialization.
Definition: App.cpp:41