修复编译bug 2287/1 2287/head 2288/target/1
authorxue <2144439972@qq.com>
Thu, 18 Sep 2025 02:14:55 +0000 (10:14 +0800)
committerxue <2144439972@qq.com>
Thu, 18 Sep 2025 02:14:55 +0000 (10:14 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdPresenter.h

index ea224f0..7d71f47 100644 (file)
@@ -21,8 +21,8 @@ namespace OHOS
         ThunderBirdPresenter();
         virtual ~ThunderBirdPresenter();
 
-        void OnTickEvent() override;
-        void Notify() override {}
+        void OnTickEvent() override{}
+        void Notify() override;
 
         void OnStart() override;
         void OnResume() override;
@@ -32,6 +32,15 @@ namespace OHOS
         // 发布事件函数
         void PublishEvent(uint16_t topic, uint8_t *data = nullptr, uint32_t size = 0);
 
+        // 按键注册方法
+        bool RegisterKeyEvents(void);
+        bool RegisterPowerKeyLongPressEvent(void);
+        bool RegisterPowerKeyPressEvent(void);
+        bool RegisterFuncKeyPressEvent(void);
+        bool RegisterFuncKeyLongPressEvent(void);
+        bool RegisterVendorUpKeyPressEvent(void);
+        bool RegisterVendorDownKeyPressEvent(void);
+
     private:
         bool OnKeyAct(UIView &view, const KeyEvent &event) override; // 增加按键事件
         bool X_DRAG_FLAG{false};