Bug 327555 - add stable dbus api
Summary: add stable dbus api
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-13 11:26 UTC by maxim.suraev
Modified: 2019-01-07 17:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maxim.suraev 2013-11-13 11:26:17 UTC
Right now kdeconnect provides 2 set of dbus api:
/module/kdeconnect which governs adding/removing devices and multiple
/modules/kdeconnect/devices/123456 where 123456 is phone-specific id which is unpredictable
This renders automated code generation tools based on dbus introspection unusable.
Would be great to have stable dbus api available under /modules/kdeconnect/devices with the same methods (sendPing(), isPaired(), charge() etc) but with one additional parameter indicating device id: "String id".
This would greatly simplify using kdeconnect dbus api.

Reproducible: Always
Comment 1 Albert Vaca Cintora 2019-01-07 17:52:46 UTC
It's not a bad idea, but we are not going to do BOTH approaches and we won't break backwards compatibility for this.

Scripting becomes a bit more convoluted the way it is, but it is still possible since you can discover all subpaths withing a path in dbus.