Exemplo n.º 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();
}
Exemplo n.º 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();
        }
    }
}
Exemplo n.º 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";
	}
}
Exemplo n.º 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();
        }
    }
}