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

35 lines
892 B
C++

/*
* Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved.
* Description: CallerLogPresenter.h
* Author:
* Create: 2021-10-12
*/
#ifndef CALLER_LOG_PRESENTER_H
#define CALLER_LOG_PRESENTER_H
#include "Presenter.h"
#include "ohos_types.h"
#include "CallerLogModel.h"
#include "graphic_timer.h"
#include "sys/time.h"
namespace OHOS {
class CallerLogView;
class CallerLogPresenter : public Presenter<CallerLogView>, public UIView::OnClickListener {
public:
CallerLogPresenter();
~CallerLogPresenter() override;
void OnStop() override;
static CallerLogPresenter *GetInstance(void);
bool OnClick(UIView &view, const ClickEvent &event) override;
void BuletoothHintsCallbackProc(void* data);
private:
void InitBluetoothHints();
void DisableBluetoothHints();
GraphicTimer* hintsCounting{nullptr};
};
}
#endif