Apps should able to share plain-text content as well
Bug #1430460 reported by
Marco Trevisan (Treviño)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
content-hub |
Fix Released
|
Wishlist
|
Ken VanDine | ||
content-hub (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
There are some cases where apps want to share just simple plain text between each others:
- You want to share the content of a message/
This is currently not possible, while for example in $other_platforms an application can ask to share some text (a tweet content, a message, a note) with another.
Copy and paste doesn't apply here, because this might be triggered by the UI.
Related branches
lp://staging/~ken-vandine/content-hub/serialized_content_transfers
- Michael Sheldon (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 565 lines (+189/-28)21 files modifiedexamples/exporter/exampleexporter.cpp (+5/-1)
examples/importer/exampleimporter.cpp (+6/-3)
examples/importer/importer.cpp (+1/-0)
import/Ubuntu/Content/contentitem.cpp (+20/-0)
import/Ubuntu/Content/contentitem.h (+5/-0)
import/Ubuntu/Content/contenttype.cpp (+6/-0)
import/Ubuntu/Content/contenttype.h (+2/-1)
include/com/ubuntu/content/item.h (+11/-1)
include/com/ubuntu/content/type.h (+1/-0)
src/com/ubuntu/content/detail/transfer.cpp (+12/-9)
src/com/ubuntu/content/item.cpp (+56/-6)
src/com/ubuntu/content/service/com.ubuntu.content.hub.gschema.xml (+12/-0)
src/com/ubuntu/content/service/hook.cpp (+1/-1)
src/com/ubuntu/content/type.cpp (+6/-0)
tests/acceptance-tests/app_hub_communication_transfer.cpp (+4/-2)
tests/peers/exporter/autoexporter.cpp (+6/-0)
tests/peers/importer/autoimporter.cpp (+6/-0)
tests/peers/importer/content-hub-test-importer.json (+2/-1)
tests/peers/sharer/autosharer.cpp (+6/-0)
tests/peers/sharer/content-hub-test-sharer.json (+2/-1)
tests/qml-tests/tst_ContentHub.qml (+19/-2)
Changed in content-hub: | |
assignee: | nobody → Ken VanDine (ken-vandine) |
Changed in content-hub: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
I'd propose a new ContentType.Text and add a data property to ContentTransfer. This could also be useful for attaching other serialized content, like a vcard for contacts as opposed to transferring vcard files.