Home
last modified time | relevance | path

Searched refs:ProgressStrategy (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/update/updater/services/ui/strategy/
H A Dprogress_strategy.h24 class ProgressStrategy {
26 explicit ProgressStrategy(const ComInfo &id) : id_ {id}, pgMgr_ {PageManager::GetInstance()} {} in ProgressStrategy() function
27 virtual ~ProgressStrategy() = default;
31 static std::unique_ptr<ProgressStrategy> Factory(const std::string &type, const ComInfo &id);
37 class TxtProgress final : public ProgressStrategy {
39 explicit TxtProgress(const ComInfo &id) : ProgressStrategy(id) { } in TxtProgress()
44 class BarProgress final : public ProgressStrategy {
H A Dprogress_strategy.cpp29 std::unique_ptr<ProgressStrategy> ProgressStrategy::Factory(const std::string &type, const ComInfo … in Factory()
31 using Fun = std::function<std::unique_ptr<ProgressStrategy>(const ComInfo &)>; in Factory()
43 void ProgressStrategy::Show() const in Show()
49 void ProgressStrategy::Hide() const in Hide()
65 BarProgress::BarProgress(const ComInfo &id) : ProgressStrategy(id) in BarProgress()
/ohos5.0/base/update/updater/services/ui/
H A Dupdater_ui_facade.h66 std::unordered_map<std::string, std::unique_ptr<ProgressStrategy>> progressMap_ {};
H A Dupdater_ui_facade.cpp250 progressMap_[mode_] = ProgressStrategy::Factory(progressPage.progressType, { in SetLogoProgress()