void Bb10Ui::onPromptFinished(bb::system::SystemUiResult::Type type) { SystemPrompt *prompt = qobject_cast<SystemPrompt *>(sender()); if (type == SystemUiResult::ConfirmButtonSelection) { QString text = prompt->inputFieldTextEntry(); switchToOrJoinChat(text, false); } prompt->deleteLater(); }
void DriveController::onPromptFinishedRenameFile(bb::system::SystemUiResult::Type result) { using namespace bb::cascades; using namespace bb::system; if(result == bb::system::SystemUiResult::ConfirmButtonSelection) { SystemPrompt* prompt = qobject_cast<SystemPrompt*>(sender()); if(prompt != NULL) { m_Google->setFileName(m_SelectedItemForSharing, prompt->inputFieldTextEntry()); prompt->deleteLater(); } } }
void ListDataModel::onPromptFinished(bb::system::SystemUiResult::Type type) { if (type == SystemUiResult::ConfirmButtonSelection) { SystemPrompt* prompt = qobject_cast<SystemPrompt*>(sender()); const QString name = prompt->inputFieldTextEntry(); const QString link = prompt->body(); addObject(name, link); } else { qDebug() << "Saving Cancelled"; } }
void DriveController::onPromptFinishedChooseName(bb::system::SystemUiResult::Type result) { using namespace bb::cascades; using namespace bb::system; if(result == bb::system::SystemUiResult::ConfirmButtonSelection) { SystemPrompt* prompt = qobject_cast<SystemPrompt*>(sender()); if(prompt != NULL) { QString directory = QDir::homePath() + QLatin1String("/ApplicationData/AudioMessages/"); m_AudioName = directory + prompt->inputFieldTextEntry() + ".m4a"; emit startRecording(); prompt->deleteLater(); } } }