blackberry/BB10-WebWorks-Framework

is it possible to use signals/slots in BB10 WebWorks app ?

Opened this issue · 1 comments

Hello,

Is it possible to use signals/slots in BB10 WebWorks native extension ?

I was able to compile and load succesfully the native extensiona and I can call native methods and fire events from within the native code.

The only problem that I have is that registered slots are never called.

Do I need to start a separate thread and manage event queue myself ? Any hints are welcome.

Example slots used during testing:

calendarService = new CalendarService();
connect(calendarService, SIGNAL(eventsRefreshed(bb::pim::calendar::EventRefresh)), SLOT(calendarSlot()));

MediaKeyWatcher* keyWatcher = new MediaKeyWatcher(MediaKey::VolumeUp);
connect(keyWatcher, SIGNAL(longPress(bb::multimedia::MediaKey::Type)), SLOT(mediaKeySlot()));

Did u get the answer?