Exemplo n.º 1
0
void
NSRFileSharer::onArmed ()
{
	if (sender () == NULL)
		return;

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

	invocation->trigger ("bb.action.SHARE");
}
Exemplo n.º 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);
}
Exemplo n.º 3
0
void ApplicationUI::onArmed()
{
    Invocation *invocation = qobject_cast<Invocation *>(sender());
    invocation->trigger("bb.action.SHARE");
}
Exemplo n.º 4
0
// Should open the image in image editor. Currently not working.
void App::onOpenInvocationArmed()
{
	Invocation *invocation = qobject_cast<Invocation*>(sender());
	invocation->trigger("bb.action.EDIT");
}