mcu_hi3321_watch/application/wearable/nativeapp/nativeui/player/include/BluetoothView.h
2025-05-26 20:15:20 +08:00

50 lines
1.5 KiB
C++

/*
* Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved.
* Description: Bluetooth view 设置页面
* Create: 2021-09-5
*/
#ifndef BLUETOOTH_VIEW_H
#define BLUETOOTH_VIEW_H
#include "components/ui_label.h"
#include "components/ui_image_view.h"
#include "components/ui_radio_button.h"
#include "components/ui_label_button.h"
#include "components/ui_view_group.h"
namespace OHOS {
class PlayerOnDragListener;
class BluetoothView {
public:
BluetoothView();
virtual ~BluetoothView();
UIViewGroup *LoadBluetoothView(void);
static BluetoothView *GetInstance(void);
UIViewGroup *group{nullptr};
UIRadioButton *GetPhoneButton(void);
UIRadioButton *GetWatchButton(void);
UIButton *GetSettingButton(void);
UILabelButton *GetDeleteButton(void);
private:
UILabel *watchLabel{nullptr};
UILabel *phoneLabel{nullptr};
UILabel *bluetoothLabel{nullptr};
UIImageView *watchImage{nullptr};
UIImageView *phoneImage{nullptr};
UIImageView *bluetoothImage{nullptr};
UIRadioButton *watchButton{nullptr};
UIRadioButton *phoneButton{nullptr};
UIButton *settingButton{nullptr};
UILabelButton *deleteButton{nullptr};
int LoadRadioButton();
int LoadButtonView();
int LoadLabelButton();
int LoadLabel();
int LoadImage();
void SetUpButton(UILabelButton *btn, const Point& point, int16_t width, int16_t height,
UIView::OnClickListener *listener);
};
} // namespace OHOS
#endif