/* * Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved. * Description: SettingItemView.h * Author: * Create: 2021-11-23 */ #ifndef SETTING_ITEM_VIEW_H #define SETTING_ITEM_VIEW_H #include "components/ui_label.h" #include "components/ui_view_group.h" #include "components/ui_image_view.h" #include "UiConfig.h" #include "SettingModel.h" namespace OHOS { class SettingItemView : public UIViewGroup { public: explicit SettingItemView(); ~SettingItemView() override; virtual void SetItemInfo(const SettingItem itemInfo); virtual void SetUpChild(); bool SlideBackEnabled() const { return sItemInfo.enableSlideBack; } AppViewId GetViewId(); const char* GetIconId(); private: UIImageView sIcon; UILabel sLabel; UIImageView sNextImage; SettingItem sItemInfo = { VIEW_INVALID, nullptr, nullptr, false, false }; }; } #endif