Inform client if ContentHub service is not available
Bug #1676893 reported by
Alberto Mardegan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
content-hub (Ubuntu) |
In Progress
|
High
|
Alberto Mardegan |
Bug Description
An app using the Content Hub QML API might have the need to know whether service is actually available, in order to fall back to other means if it isn't.
This is especially relevant for snaps: if the snap uses the content from ubuntu-
I propose adding a "valid" property to the ContentHub singleton which would tell whether the service is available.
Related branches
lp://staging/~mardy/content-hub/valid-1676893
Ready for review
for merging
into
lp://staging/content-hub
- system-apps-ci-bot: Needs Fixing (continuous-integration)
- Ubuntu Phablet Team: Pending requested
-
Diff: 100 lines (+22/-0)6 files modifiedimport/Ubuntu/Content/contenthub.cpp (+5/-0)
import/Ubuntu/Content/contenthub.h (+3/-0)
include/com/ubuntu/content/hub.h (+3/-0)
src/com/ubuntu/content/hub.cpp (+5/-0)
tests/acceptance-tests/app_hub_communication_default_source.cpp (+2/-0)
tests/qml-tests/tst_ContentHub.qml (+4/-0)
Changed in content-hub (Ubuntu): | |
assignee: | nobody → Alberto Mardegan (mardy) |
Changed in content-hub (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → High |
To post a comment you must log in.