All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
OSXConnectivityService.h
1 // Copyright (c) 2015 eeGeo. All rights reserved.
2 
3 #pragma once
4 #include "Types.h"
5 #include "IConnectivityService.h"
6 #include "CallbackCollection.h"
7 #include <string>
8 
9 namespace Eegeo
10 {
11  namespace OSX
12  {
14  {
15  public:
17 
18  bool HasConnectivity();
19  Web::ConnectivityType GetConnectivityType();
20 
21  const std::string& GetSSIDForCurrentWifi();
22 
23  void RegisterConnectivityChangedCallback(Helpers::ICallback1<const bool&>& callback);
24  void UnregisterConnectivityChangedCallback(Helpers::ICallback1<const bool&>& callback);
25 
26  private:
28  Web::ConnectivityType m_connectivityType;
29  std::string m_currentSSID;
30  bool m_hasConnectivity;
31  };
32  }
33 }