1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef UPDATE_UI_UPDATER_UI_H 16 #define UPDATE_UI_UPDATER_UI_H 17 18 #include <string> 19 #include "text_label.h" 20 #include "progress_bar.h" 21 22 namespace updater { 23 void DoProgress(); 24 25 void ShowUpdateFrame(bool isShow); 26 27 void UpdaterUiInit(); 28 29 void ShowText(TextLabel *label, std::string text); 30 31 void DeleteView(); 32 33 TextLabel *GetUpdateInfoLabel(); 34 35 ProgressBar *GetProgressBar(); 36 37 void SetUpdateFlag(int updateFlag); 38 } // namespace updater 39 #endif /* UPDATE_UI_HOS_UPDATER_H */ 40