wloc 1.1.0
Simple Wi-Fi geolocation library and tool
wloc.fetchers.FetcherCommon Class Reference
Inheritance diagram for wloc.fetchers.FetcherCommon:
wloc.fetchers.android.FetcherAndroid wloc.fetchers.linux.FetcherLinux wloc.fetchers.windows.FetcherWindows

Public Member Functions

None __init__ (self)
 
None fetch (self)
 
list networks (self)
 

Protected Member Functions

None _clear_networks (self)
 
None _fetch_networks (self)
 

Protected Attributes

list _netlist
 

Detailed Description

Abstract class for fetching the list of available Wi-Fi networks.

Constructor & Destructor Documentation

◆ __init__()

None wloc.fetchers.FetcherCommon.__init__ ( self)
Main constructor of the FetcherCommon class.

Member Function Documentation

◆ _clear_networks()

None wloc.fetchers.FetcherCommon._clear_networks ( self)
protected
Clears the list of available networks if not empty.

◆ _fetch_networks()

None wloc.fetchers.FetcherCommon._fetch_networks ( self)
protected
Fetches the list of available networks and stores them to the
private class property.

Abstract method. Must be overridden.

Reimplemented in wloc.fetchers.android.FetcherAndroid, wloc.fetchers.linux.FetcherLinux, and wloc.fetchers.windows.FetcherWindows.

◆ fetch()

None wloc.fetchers.FetcherCommon.fetch ( self)
Fetches the list of available networks.

◆ networks()

list wloc.fetchers.FetcherCommon.networks ( self)
Gets list of available wireless networks.
:return: List of available wireless networks.