增加返回原任务接口
authorxue <2144439972@qq.com>
Mon, 29 Sep 2025 07:54:53 +0000 (15:54 +0800)
committerxue <2144439972@qq.com>
Mon, 29 Sep 2025 07:54:53 +0000 (15:54 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdMainView.h
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdModel.h

index 3f84df3..69133c4 100644 (file)
@@ -63,6 +63,9 @@ namespace OHOS
 
         int16_t GetCurrentView() const;
         int16_t GetCurrentSubView() const;
+        
+        // 跳转到上一个界面
+        bool GoBackToPreviousView();
 
 
         void UpdateBatteryProcess();
@@ -77,6 +80,14 @@ namespace OHOS
         bool SwitchVideo(const char *uri);
         // 切换头发贴图
         void SwitchHair(const char *hairPath);
+        // 获取是否开启屏保模式
+        bool GetIsOpenScreenImageModel(void);
+        // 切换iconView图片接口
+        void SwitchIconImage(const char *imagePath);
+        // 切换屏保模式接口
+        bool OpenScreenImageModel(void);
+        // 关闭屏保模式接口
+        bool CloseScreenImageModel(void);
         // 关机前关闭视频与相关资源
         void CloseVideo();
         // 打开遮罩(部分视图需要)
@@ -129,6 +140,8 @@ namespace OHOS
         bool wasCharging{false};
         bool notifiedChargeFull{false};
 
+        bool IsOpenScreenImageModel_{false}; // 是否开启屏保模式
+
         // 各子界面对象指针
         // OTA界面已独立为slice,不再需要此指针
         ThunderBirdGuideView *g_pThunderBirdGuideView{nullptr};
index b160b3d..61c42a4 100644 (file)
@@ -173,6 +173,12 @@ namespace OHOS
         void HandleChatStaminaChange(int chatLeft, const char* chatDesc, int flowLeft, 
                                    const char* flowDesc, const char* qrcodeUrl);
         
+        // 屏保图片下载成功处理函数
+        void HandleScreenImageDownloadSuccess();
+        
+        // API错误处理函数
+        void HandleApiError(const char* message);
+        
         // 表情切换函数
         bool SwitchExpression(const char* eyeShape, const char* eyeColor);