#include "key/KeyInputListener.h"
#include "Presenter.h"
#include "View.h"
-#include "main/ModelListenerSample.h"
namespace OHOS
{
class ThunderBirdPresenter : public Presenter<ThunderBirdMainView>,
public UIView::OnClickListener,
public RootView::OnKeyActListener,
- public ModelListenerSample,
public UIView::OnDragListener
{
public:
ThunderBirdPresenter();
virtual ~ThunderBirdPresenter();
- void OnTickEvent() override{}
- void Notify() override;
-
void OnStart() override;
void OnResume() override;
// 发布事件函数
void PublishEvent(uint16_t topic, uint8_t *data = nullptr, uint32_t size = 0);
+ void timer_callback_toui_proc();
+
private:
bool OnKeyAct(UIView &view, const KeyEvent &event) override; // 增加按键事件
bool X_DRAG_FLAG{false};
#include "thunderbird/include/ThunderBirdOtaView.h"
#include "thunderbird/include/ThunderBirdLullabyView.h"
#include "thunderbird/include/ThunderBirdMainView.h"
+ #include "thunderbird/include/ThunderBirdPresenter.h"
#include "wearable_log.h"
#include <sys/time.h>
#include <service/graphic_service.h>
ThunderBirdModel::GetInstance()->timer_callback_proc();
ThunderBirdMainView::GetInstance()->updateSignalDisplay();
ThunderBirdMainView::GetInstance()->UpdateBatteryProcess();
+ //状态监控
+ if(ThunderBirdPresenter::GetInstance() != nullptr)
+ {
+ ThunderBirdPresenter::GetInstance()->timer_callback_toui_proc();
+ }
}
/*
* @brief 回调函数
- /*
- 1、新手引导
- 判断是否绑定 返回,0:绑定,1:未绑定;2:没有网络 使用枚举
- 2、对话
- 2.1 录音
- 开始录音接口
- 停止录音接口
- 2.2 发送录音接口
- 2.3 接收回答数据
- 2.4 对话文本获取接口
- 2.5 对话结束接口
- 3、哄睡模式
- 4、事项提醒
- */
+ /*
+ 1、新手引导
+ 判断是否绑定 返回,0:绑定,1:未绑定;2:没有网络 使用枚举
+ 2、对话
+ 2.1 录音
+ 开始录音接口
+ 停止录音接口
+ 2.2 发送录音接口
+ 2.3 接收回答数据
+ 2.4 对话文本获取接口
+ 2.5 对话结束接口
+ 3、哄睡模式
+ 4、事项提醒
+ */
}