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
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All
Accepted Solution

Which one will response the signals after emit them

[ Edited ]

I found there are always using emit to send some customized signals in the sample applications. I only found the definition of some signals and the process to emit these signals, but I didn't find where to response these emit signals. Such as the signal of "tweetsLoaded" in the project of "twittertimeline".

 

May someone can explain it in detail? Thank you.




p(^_^)q
Good good study, day day up
Highlighted
Developer
Posts: 293
Registered: ‎10-15-2012
My Device: bb10 developer
My Carrier: Orange

Re: Which one will response the signals after emit them

The cascades documentation is *always* your first port of call for this type of question:

https://developer.blackberry.com/cascades/documentation/

look for the "Signals and Slots" section
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Which one will response the signals after emit them

[ Edited ]

In main.qml this signal is connected to pushPane() JS function:

 

        function pushPane()
        {
            navigationPane.push(viewTypes.selectedValue.createObject())
        }

        onCreationCompleted: _timeline.tweetsLoaded.connect(pushPane)

To find them just grep the signal's name:

 

grep -ri tweetsLoaded *

 

 


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All

Re: Which one will response the signals after emit them

[ Edited ]

OK. I got it. Thank you. Zmey. I only checked C++ files. :0(




p(^_^)q
Good good study, day day up