[feature-request] provide an API for publishing/sharing QML page of one app to another apps

asked 2016-09-29 11:50:23 +0200

virgi26 gravatar image

updated 2016-09-29 12:21:14 +0200

Not sure if this wasn't asked before.

I would like to have a feature/API to share QML page (maybe not page exactly) between applications. Basically, while being in an app, i want to invoke a task inside other app (eg. while being inside email app i want to add event that was sent to me to my calendar). Right now i would have to actually open another app, do something, close it, and then return to my first app, which is not very convenient. So it will be really neat if i could open a page from second app inside the first one without actually opening the second one.

Hope this sounds reasonable =)

edit retag flag offensive close delete



Please add exact cases, and we try to help you

coderus ( 2016-09-29 12:50:44 +0200 )edit

Isn't this what D-Bus does? If an app exposes its services through D-Bus, any app can call them. This can be anything: the Calendar app could, for example, accept a command to create an event from another app. D-Bus is already installed on a lot of Linux systems (including SailfishOS). But the apps must expose their services first.

Camil B ( 2016-09-29 12:51:47 +0200 )edit

@Camil B it is not exactly a D-Bus. I don't want just to call some method/function in second app via D-Bus. I want to expose a page for other application to show it. In my example with email app: when i click calendar link inside an email, i want a page appear (which is actually a part of Calendar app) where i could add the event to calendar without leaving email app. At this moment every developer who wants to provide a feature for adding an event to calendar will have to either code a page with event details inside his app and then call D-Bus to add it to calendar, or call D-Bus to actually open calendar app and then user will have to close it

virgi26 ( 2016-09-29 13:27:44 +0200 )edit

@coderus there is actually an example in my question

virgi26 ( 2016-09-29 13:28:20 +0200 )edit

@Camil B or can D-Bus actually return pointer to QML page/element wihch i can use and insert into my pagestack? =)

virgi26 ( 2016-09-29 13:32:25 +0200 )edit