[API] Give apps access to their currently supported content-types
Bug #1596542 reported by
Alexandre Abreu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
webapps-sprint |
In Progress
|
Medium
|
Alexandre Abreu | ||
content-hub (Ubuntu) |
In Progress
|
Medium
|
Alexandre Abreu |
Bug Description
It would be convenient for apps to have a runtime access to their currently supported content types. Those are only accessible in the content hub hook file, that it outside of the reach of the app.
One use case for that would be for e.g. the webapp-container which is an app agnostic webapp launcher, that has no knowledge of the context of the click app, but has to behave in different way for e.g. downloaded files that are supported by the app or not.
Related branches
lp://staging/~abreu-alexandre/content-hub/types-per-app-id
Ready for review
for merging
into
lp://staging/content-hub
- system-apps-ci-bot: Needs Fixing (continuous-integration)
- Ken VanDine: Approve
-
Diff: 312 lines (+120/-0)17 files modifiedimport/Ubuntu/Content/contenthub.cpp (+24/-0)
import/Ubuntu/Content/contenthub.h (+2/-0)
include/com/ubuntu/content/hub.h (+1/-0)
src/com/ubuntu/content/detail/com.ubuntu.content.Service.xml (+4/-0)
src/com/ubuntu/content/detail/peer_registry.h (+1/-0)
src/com/ubuntu/content/detail/service.cpp (+14/-0)
src/com/ubuntu/content/detail/service.h (+1/-0)
src/com/ubuntu/content/hub.cpp (+19/-0)
src/com/ubuntu/content/service/registry.cpp (+46/-0)
src/com/ubuntu/content/service/registry.h (+1/-0)
tests/acceptance-tests/app_hub_communication_default_source.cpp (+1/-0)
tests/acceptance-tests/app_hub_communication_handler.cpp (+1/-0)
tests/acceptance-tests/app_hub_communication_known_sources.cpp (+1/-0)
tests/acceptance-tests/app_hub_communication_paste.cpp (+1/-0)
tests/acceptance-tests/app_hub_communication_stores.cpp (+1/-0)
tests/acceptance-tests/app_hub_communication_transfer.cpp (+1/-0)
tests/acceptance-tests/test_hook.cpp (+1/-0)
Changed in content-hub (Ubuntu): | |
assignee: | nobody → Alexandre Abreu (abreu-alexandre) |
status: | New → In Progress |
importance: | Undecided → Medium |
Changed in webapps-sprint: | |
milestone: | none → sprint-24 |
assignee: | nobody → Alexandre Abreu (abreu-alexandre) |
importance: | Undecided → Medium |
status: | New → In Progress |
To post a comment you must log in.