I became bit lost with how to set a result attribute or trigger scope search (refresh) inside Scope::perform_action method or in methods of ActivationQuery object. The idea is to change data in a source, then either refresh a reply by new query or just modify previous result in same way as source has been changed. Typical example would be "was read" status set.
Could you help out a little with below example?
sc::ActivationQueryBase::UPtr Scope::perform_action(const sc::Result &result,
sc::ActionMetadata const &metadata,
std::string const &widget_id, std::string const &action_id) {
//update current Result/reply or trigger new search by scope
return sc::ActivationQueryBase::UPtr(new ActivationQuery(result, metadata, widget_id, action_id, config_));
}