void NSRFileSharer::onArmed () { if (sender () == NULL) return; Invocation *invocation = static_cast<Invocation *> (sender ()); invocation->trigger ("bb.action.SHARE"); }
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); }
void ApplicationUI::onArmed() { Invocation *invocation = qobject_cast<Invocation *>(sender()); invocation->trigger("bb.action.SHARE"); }
// Should open the image in image editor. Currently not working. void App::onOpenInvocationArmed() { Invocation *invocation = qobject_cast<Invocation*>(sender()); invocation->trigger("bb.action.EDIT"); }