[Tracker] Review request: network-status branch



Hi,

The network-status branch adds a new TrackerNetworkProvider interface to
libtracker-miner, as well as two implementations. Its purpose is to expose
the
network status to miners, so that they can behave appropriately if they
have to
interact with online services.
The current interface allows a miner to know if it is connected to
internet,
and if so what type of connection (Wifi, 3G, GPRS etc.) it is using. The
precision of the information of course depends on the underlying backend.

I provide a dummy backend, which assumes that internet is connected (that
would
be equivalent to the current behaviour, where web miners will fail more or
less
gracefully if network is disconnected), and a NetworkManager based backend
which
is able to provide the network status and the connection type.

The patch is a bit massive (~800 lines), but there's nothing scary in it,
so it
should be easy to review (hint, hint :-p).

Cheers

Adrien




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]