Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples #18

Open
CODeRUS opened this issue Mar 20, 2014 · 5 comments
Open

Examples #18

CODeRUS opened this issue Mar 20, 2014 · 5 comments

Comments

@CODeRUS
Copy link

CODeRUS commented Mar 20, 2014

Please provide simple skeleton examples for share and transfers plugins

@zchydem
Copy link

zchydem commented Mar 20, 2014

Yeah, they could be useful. I just need to find some time to implement those....

@CODeRUS
Copy link
Author

CODeRUS commented Mar 20, 2014

I'm trying to ping you at #sailfishos and #nemomobile this week with no success :D

@zchydem
Copy link

zchydem commented Mar 20, 2014

Yes, I've been idle there lately.

@CODeRUS
Copy link
Author

CODeRUS commented Apr 14, 2014

Can you add more code to uploader object? I'm getting following error:

QDBusMarshaller: cannot add a null QDBusVariant
QDBusConnection: error: could not send message to service "org.nemo.transferengine" path "/org/nemo/transferengine" interface "org.nemo.transferengine" member "uploadMediaItem": Marshalling failed: Variant containing QVariant::Invalid passed in arguments
[W] DeclarativeSharePrivate::transferIdReceived:66 - DeclarativeSharePrivate::transferIdReceived: failed to get transferId QDBusError("org.freedesktop.DBus.Error.Failed", "Marshalling failed: Variant containing QVariant::Invalid passed in arguments")

and also how to access mimeType?

@zchydem
Copy link

zchydem commented Jun 27, 2014

In your uploader code you should be able get it by:

mediaItem()->value(MediaItem::MimeType).toString();

And in your Share UI QML code you can set it:

ShareDialog {
id: root

SailfishShare {
id: shareItem
source: root.source
metadataStripped: true
serviceId: root.methodId
mimeType:
userData: {
"description": textField.text,
"accountId": root.accountId,
"scalePercent": 1
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants