コード例 #1
0
void
NSRFileSharer::onArmed ()
{
	if (sender () == NULL)
		return;

	Invocation *invocation = static_cast<Invocation *> (sender ());

	invocation->trigger ("bb.action.SHARE");
}
コード例 #2
0
void InvocationRecipe::launchPendingInvokation()
{
    if (!mInvokeButton->isEnabled()) {
        // The button is disable when its pressed, so we only end up here
        // if the selected options Invocation query has been been updated and
        // it is armed.
        QVariant optionValue = mInvokeSelection->selectedValue();

        if (optionValue.canConvert<Invocation*>()) {
            // Trigger the Invocation.
            Invocation *invocation = optionValue.value<Invocation*>();
            invocation->trigger(invocation->query()->invokeActionId());
        }
    }
    mInvokeButton->setEnabled(true);
}
コード例 #3
0
ファイル: applicationui.cpp プロジェクト: anpho/Dapenti
void ApplicationUI::onArmed()
{
    Invocation *invocation = qobject_cast<Invocation *>(sender());
    invocation->trigger("bb.action.SHARE");
}
コード例 #4
0
ファイル: app.cpp プロジェクト: kodira/pattern
// Should open the image in image editor. Currently not working.
void App::onOpenInvocationArmed()
{
	Invocation *invocation = qobject_cast<Invocation*>(sender());
	invocation->trigger("bb.action.EDIT");
}