35 lines
873 B
C++
35 lines
873 B
C++
/*
|
|
* Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved.
|
|
* Description: SettingView.h
|
|
* Author:
|
|
* Create: 2021-11-23
|
|
*/
|
|
|
|
#ifndef SETTING_VIEW_H
|
|
#define SETTING_VIEW_H
|
|
|
|
#include "View.h"
|
|
#include "components/root_view.h"
|
|
#include "components/ui_view_group.h"
|
|
#include "components/ui_scroll_view.h"
|
|
#include "components/ui_label.h"
|
|
#include "components/ui_list.h"
|
|
#include "SettingAdapter.h"
|
|
#include "ChangeSliceListener.h"
|
|
namespace OHOS {
|
|
class SettingPresenter;
|
|
class SettingView : public View<SettingPresenter> {
|
|
public:
|
|
SettingView();
|
|
~SettingView() override;
|
|
|
|
void OnStart() override;
|
|
void RefreshSettingsList(const SettingItem* item, uint8_t count);
|
|
private:
|
|
SettingAdapter *listAdapter{nullptr};
|
|
UIScrollView *scrollView{nullptr};
|
|
UIList *contentList{nullptr};
|
|
UILabel *title{nullptr};
|
|
};
|
|
}
|
|
#endif // SETTING_VIEW_H
|