40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
/*
|
|
* Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved.
|
|
* Description: Bluetooth Reconnect View
|
|
* Author:
|
|
* Create: 2021-07-26
|
|
*/
|
|
#ifndef BLUETOOTH_RECONNECT_VIEW_H
|
|
#define BLUETOOTH_RECONNECT_VIEW_H
|
|
|
|
|
|
#include "components/ui_label.h"
|
|
#include "components/ui_image_animator.h"
|
|
#include "components/abstract_adapter.h"
|
|
#include "components/ui_view_group.h"
|
|
#include "bts_def.h"
|
|
#define BLUETOOTH_RECONNECT_IMAGE_NUM 8
|
|
|
|
namespace OHOS {
|
|
class BluetoothReconnectView {
|
|
public:
|
|
BluetoothReconnectView();
|
|
~BluetoothReconnectView();
|
|
static BluetoothReconnectView *GetInstance();
|
|
UIViewGroup *InitShowUpView(void);
|
|
void BtReconnectStart(void);
|
|
void BtReconnectStop(void);
|
|
bd_addr_t GetcurrentBdAddr(void);
|
|
void RefreshBluetoothNameLabel();
|
|
private:
|
|
ImageAnimatorInfo reconnetImageInfo[BLUETOOTH_RECONNECT_IMAGE_NUM];
|
|
void ShowUpTitleLabel(void);
|
|
UILabel *titleLabel{nullptr};
|
|
UILabel *bluetoothNameLabel{nullptr};
|
|
UIImageAnimatorView *reconnectAnimator{nullptr};
|
|
UIViewGroup *group{nullptr};
|
|
bd_addr_t currentBdAddr;
|
|
void BtReconnectImageAnimator();
|
|
};
|
|
} // namespace OHOS
|
|
#endif // BLUETOOTH_RECONNECT_VIEW_H
|