In my App, when ever BB 10 Device is in Offline... I need to show a dialog box with "Ok" Button.pressing "Ok" button Should Terminate the APP !!!
SystemDialog *dialog;
dialog = new SystemDialog(tr("OK"), 0);
dialog->setTitle(tr("Alert"));
dialog->setBody(message);
dialog->setDismissAutomatically(true);.
connect(dialog, SIGNAL(finished(bb::system::SystemUiResult::Type)), dialog,
SLOT(deleteLater()));
dialog->show();
Here deleteLater() is SystemSlot which is only terminating the Alert Dialog box but not the App!!! How to Do this in BB 10 Cascades through C++ Code? IS it possible to Override deleteLater() SystemSlot like this,
// I replaced deleteLater() with SLOT(deleteLaters()) in above code and Added this Slot
void deleteLaters(){
bb::Application::exit(0);
}
Then Its is Saying, No such slot deleteLaters() Found in bb::System !!!
Please Help,
Thankks!!!