All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ConnectivityHealthCheckState.h
1 // Copyright eeGeo Ltd (2012-2016), All Rights Reserved
2 #pragma once
3 
4 #include "BaseState.h"
5 #include "AlertBox.h"
6 #include "Web.h"
7 #include "ISingleOptionAlertBoxDismissedHandler.h"
8 
9 namespace Eegeo
10 {
11  namespace WorldStates
12  {
14  {
15  public:
16  ConnectivityHealthCheckState(const std::string& stateName,
17  Web::WebConnectivityValidator& connectivityValidator,
18  const Web::WebConnectivityErrorHandler& connectivityErrorHandler);
19 
20  virtual void Enter();
21 
22  virtual void Update(float dt,
23  const Camera::RenderCamera& renderCamera,
24  const dv3& ecefInterestPoint,
25  Streaming::IStreamingVolume& streamingVolume);
26 
27  virtual void Exit();
28 
29  void SetChangeStateCallback(IChangeStateCallback* changeStateCallback);
30 
31  private:
32 
33  void OnDismiss();
34 
35  Web::WebConnectivityValidator& m_connectivityValidator;
36  const Web::WebConnectivityErrorHandler& m_connectivityErrorHandler;
37  IChangeStateCallback* m_pChangeStateCallback;
38  };
39  }
40 }