#ifndef TJD_UI_APP_FINDPHONE_VIEW_H #define TJD_UI_APP_FINDPHONE_VIEW_H #include "View.h" #include "TjdUiAppFindPhonePresenter.h" #include "components/ui_label.h" #include "components/ui_label_button_ext.h" #include "components/ui_list.h" #include "components/ui_scroll_view.h" #include "components/ui_image_view.h" #include "common/image.h" #include "components/ui_view.h" #include "gfx_utils/graphic_types.h" #include "TjdUiMemManage.h" #include "components/ui_checkbox.h" #include "components/ui_edit_text.h" #include "components/ui_image_animator.h" #include "components/ui_view_group.h" #include "ui_label_ext.h" namespace TJD { enum FindPhoneViewIndex { FIND_PHONE_VIEW, FIND_PHONE_FAIL_VIEW, FINDPHONE_VIEW_COUNT }; class TjdUiAppFindPhonetPresenter; class TjdUiAppFindPhoneView : public OHOS::View, public OHOS::UIViewGroup { public: TjdUiAppFindPhoneView(); ~TjdUiAppFindPhoneView(); static TjdUiAppFindPhoneView *GetInstance(void); void OnStart() override; void OnStop() override; void ShowView(FindPhoneViewIndex hideView, FindPhoneViewIndex showView); void Changestatus1(); void Changestatus2(); FindPhoneViewIndex GetCurrentView() { return currentView_; } private: FindPhoneViewIndex currentView_{FindPhoneViewIndex::FIND_PHONE_VIEW}; OHOS::UIViewGroup *containerAll_{nullptr}; OHOS::UIViewGroup *findphoneView[FINDPHONE_VIEW_COUNT]{nullptr}; OHOS::UIScrollView *InitFindPhoneView(); OHOS::UIScrollView *InitBleNotConnectedView(); OHOS::UIImageView *fdPhoneStart_{nullptr}; OHOS::UIImageView *fdPhonePause_{nullptr}; OHOS::UIImageView *fdPhoneCover_{nullptr}; OHOS::UIImageView *fdPhoneFail_{nullptr}; OHOS::UIImageAnimatorView *imageAnimatorfindphone_{nullptr}; OHOS::UILabelExt *lblFindPhone_{nullptr}; OHOS::UILabelExt *lblFindPhoneNotConnected_{nullptr}; void InitFindPhoneImage(); }; } #endif