D23576: Add property lastScan to WirelessDevice and associated change signal
Jan Grulich
noreply at phabricator.kde.org
Fri Aug 30 12:26:11 BST 2019
jgrulich added a comment.
In D23576#522340 <https://phabricator.kde.org/D23576#522340>, @meven wrote:
> I am hesitant to add a second field "previousScan" that would store the previous lastScan timeStamp when a new one arrives.
> This would be used to compute the time elapsed between the scans which is necessary to do since Network manager requires scans to be at least 10 seconds apart :
> https://github.com/NetworkManager/NetworkManager/blob/master/src/devices/wifi/nm-device-wifi.c#L1205
That would be useful I guess and could be used in plasma-nm.
1. You should set initial lastScan property to "-1" which should indicate there was no scan attempt
2. Mention that it will work only when NM 1.12+ is running, older NM releases don't support this property
3. Above mentioned will be a problem when you would like to rely on that in plasma-nm, because we should be working even with older NM versions
REPOSITORY
R282 NetworkManagerQt
REVISION DETAIL
https://phabricator.kde.org/D23576
To: meven, jgrulich
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190830/801ef87d/attachment.html>
More information about the Kde-frameworks-devel
mailing list