Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
sgallego84
Posts: 89
Registered: ‎10-18-2012
My Device: BB Z10

Re: sharing data of type QString using Invocation Framework.

Hi,

I have update my code with your advice:

 

Invocation *m_pInvocation = Invocation::create(
				InvokeQuery::create().parent(this).mimeType("text/plain; charser=utf-8")
				.data(QString(title + " " + link).toUtf8()));
QObject::connect(m_pInvocation, SIGNAL(armed()), this, SLOT(onArmed()));
QObject::connect(m_pInvocation, SIGNAL(finished()), m_pInvocation,
				SLOT(deleteLater()));

 Now, when I select the email option the content is empty. When I select any other option the text is ok.

 

For example. If I want to share 'París'. In spanish París has an accent. (í)

 

mimeType: text/plain

Email: ParÃs

Other: París

 

mimeType: text/plain; charset=utf-8

Email: (empty)

Other: París

 

 

Developer
sgallego84
Posts: 89
Registered: ‎10-18-2012
My Device: BB Z10

Re: sharing data of type QString using Invocation Framework.

I think we can solve it if we can check what application have selected the user to share with and set the data depending on the selection...

 

Is it possible??