On Thu, 2009-09-17 at 09:28 +0100, Jussi Kukkonen wrote:
> Frederik Elwert wrote:
>>> Network monitoring might be another tricky problem, but in contrast to
>>> password storage, I think it was solved via a
freedesktop.org D-Bus API
>>> which works under both KDE and GNOME. We can depend on that on Linux.
>>> Please correct me if I am wrong.
>> I didn’t find anything on fd.o, but I think NetworkManager is commonly
>> used under KDE and GNOME, so it’s DBus interface could be used. But NM
>> is not always present, e.g., some users replace it with wicd, or use
>> old-school config file network configuration. But maybe I missed
>> something.
> Yeah, there isn't a common API at the moment, I believe. NetworkManager,
> Moblin Connman and Maemo ConIC all have different APIs.
So what does the sync-ui check at the moment? Is the "diable sync
because unconnected" an --enable-gui=moblin exclusive feature because we
only support ConnMan?
Yes, although without any compile time checks. I just connect to
org.Moblin.Connman PropertyChanged.
Same could be done with NM and ConIC. It'll be one init function and and
one signal handler per API. I did a "network abstraction" thingy in
geoclue once but I think that was overkill. Is there a downside to just
listening to all of the interfaces we care about all the time?
-Jussi