// pkgmgr signal should work only for online mode
// there is no one to receive it in offline mode
if (context_->installation_mode.get() == InstallationMode::ONLINE) {
- pi_ = pkgmgr->CreatePkgmgrSignal();
+ ps_ = pkgmgr->CreatePkgmgrSignal();
}
}
void AppInstaller::HandleStepError(Step::Status result,
const std::string& error) {
- if (!pi_)
+ if (!ps_)
return;
- pi_->SendError(result, error, context_->pkg_type.get(),
+ ps_->SendError(result, error, context_->pkg_type.get(),
context_->pkgid.get());
}
}
bool AppInstaller::SendStartIfNotSent(bool is_skippable) {
- if (!pi_)
+ if (!ps_)
return false;
- if (pi_->state() != PkgmgrSignal::State::NOT_SENT)
+ if (ps_->state() != PkgmgrSignal::State::NOT_SENT)
return true;
if (context_->pkgid.get().empty() && is_skippable)
return true;
// set request type before sending start signal
- pi_->SetRequestType(context_->request_type.get());
- pi_->SendStarted(context_->pkg_type.get(), context_->pkgid.get());
+ ps_->SetRequestType(context_->request_type.get());
+ ps_->SendStarted(context_->pkg_type.get(), context_->pkgid.get());
return true;
}
return;
// send installation progress
- pi_->SendProgress(progress,
+ ps_->SendProgress(progress,
context_->pkg_type.get(), context_->pkgid.get());
}
if (!SendStartIfNotSent(false))
return;
- pi_->SendFinished(process_status,
+ ps_->SendFinished(process_status,
context_->pkg_type.get(),
context_->pkgid.get());
}