Пример #1
0
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();
}
Пример #2
0
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();
        }
    }
}
Пример #3
0
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";
	}
}
Пример #4
0
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();
        }
    }
}