Welcome to mirror list, hosted at ThFree Co, Russian Federation.

wifi_info.hpp « platform - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 21aa0425263763eda7f72b82e77cb89986386199 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once

#include "std/function.hpp"

#include "std/vector.hpp"
#include "std/string.hpp"

class WiFiInfo
{
public:
  class Impl;

  struct AccessPoint
  {
    string m_bssid;           //!< for example, "33-12-03-5b-44-9a"
    string m_ssid;            //!< name for APN
    string m_signalStrength;  //!< for example, "-54"
  };

  WiFiInfo();
  ~WiFiInfo();

  typedef function<void (vector<WiFiInfo::AccessPoint> const &)> WifiRequestCallbackT;
  void RequestWiFiBSSIDs(WifiRequestCallbackT callback);
  /// Stops any active updates
  void Stop();

private:
    Impl * m_pImpl;
};