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
AlexXF
Posts: 323
Registered: ‎03-10-2010
My Device: Bold 9780, DevAlpha
Accepted Solution

Invokation. What i've miss?

m_pInvocation = Invocation::create(
    InvokeQuery::create()
      .parent(this)
      .mimeType("text/txt"));
  QObject::connect(m_pInvocation, SIGNAL(armed()),
    this, SLOT(onArmed()));
  QObject::connect(m_pInvocation, SIGNAL(finished()),
    m_pInvocation, SLOT(deleteLater()));

 

When i'm trying to compile it, i've receive error: 

incomplete type 'bb::cascades::InvokeQuery' used in nested name specifier

 

What I've miss?

 

	void share(QString string);

public Q_SLOTS:
	void onArmed();

private:
	bb::cascades::Invocation* m_pInvocation;

 

Developer
Zmey
Posts: 1,512
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

Re: Invokation. What i've miss?

#include <bb/cascades/InvokeQuery> ?


Andrey Fidrya, @zmeyc on twitter
Developer
AlexXF
Posts: 323
Registered: ‎03-10-2010
My Device: Bold 9780, DevAlpha

Re: Invokation. What i've miss?

Yep. Found it. :smileyhappy: