Allow updating default DBus timeout on every interface
ClosedPublic

Authored by aleksanderm on Jul 11 2019, 11:00 AM.

Details

Summary

Some methods in the ModemManager API (e.g. network scan) may take
longer to complete than the default DBus timeout configured for the
QDBusAbstractInterface, which is 25s usually.

Allow clients to update this default timeout on every interface.

Diff Detail

Repository
R281 ModemManagerQt
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
aleksanderm created this revision.Jul 11 2019, 11:00 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptJul 11 2019, 11:00 AM
Restricted Application added 1 blocking reviewer(s): jgrulich. · View Herald Transcript
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
aleksanderm requested review of this revision.Jul 11 2019, 11:00 AM

attaching a tester program to exercise the new API in one of the interfaces.

I think all the methods should be called timeout() and setTimeout(), you are not changing default timeout which will always be 25s if -1 is set as timeout value. Also the getters should be const methods.

Renamed methods and made the getter const.

jgrulich accepted this revision.Jul 11 2019, 11:29 AM
This revision is now accepted and ready to land.Jul 11 2019, 11:29 AM
This revision was automatically updated to reflect the committed changes.