42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
/*
|
|
* Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved.
|
|
* Description: BluetoothOptions view
|
|
* Author:
|
|
* Create: 2021-10-13
|
|
*/
|
|
#ifndef BLUETOOTH_OPTIONS_VIEW_H
|
|
#define BLUETOOTH_OPTIONS_VIEW_H
|
|
|
|
#include "components/ui_view_group.h"
|
|
#include "components/ui_label.h"
|
|
#include "components/ui_label_button.h"
|
|
#include "components/ui_image_animator.h"
|
|
#include "BluetoothCaseListAdapter.h"
|
|
|
|
namespace OHOS {
|
|
class BluetoothOptionsView {
|
|
public:
|
|
BluetoothOptionsView();
|
|
~BluetoothOptionsView();
|
|
static BluetoothOptionsView *GetInstance();
|
|
UIViewGroup *InitShowUpView(void);
|
|
UILabelButton *GetOptionsOneButton(void);
|
|
UILabelButton *GetUnpairButton(void);
|
|
void SetUnpair(void);
|
|
void SetBtconnect(void);
|
|
void SetBtDisconnect(void);
|
|
void SetCurrentAddr(bd_addr_t addr);
|
|
bd_addr_t GetCurrentAddr(void);
|
|
void RefreshText(void);
|
|
private:
|
|
void InItTitleLabel(void);
|
|
void InItLabelButton(void);
|
|
UILabelButton *optionsOneButton{nullptr};
|
|
UILabelButton *unpairButton{nullptr};
|
|
UILabel *titleLabel{nullptr};
|
|
UILabel *connectStateLabel{nullptr};
|
|
UIViewGroup *group{nullptr};
|
|
bd_addr_t currentAddr;
|
|
};
|
|
} // namespace OHOS
|
|
#endif // BLUETOOTH_OPTIONS_VIEW_H
|