Merge branch 'xts_origin' of https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230...
authorCaisking <3449750381@qq.com>
Tue, 20 Feb 2024 11:54:58 +0000 (19:54 +0800)
committerCaisking <3449750381@qq.com>
Tue, 20 Feb 2024 11:54:58 +0000 (19:54 +0800)
1  2 
code/sdk/application/wearable/fd230app/CMakeLists.txt
code/sdk/application/wearable/fd230app/nativelauncher/include/AppViewIDs.h
code/sdk/application/wearable/fd230app/nativelauncher/include/NativeLauncher.h
code/sdk/application/wearable/fd230app/nativelauncher/src/NativeLauncher.cpp

@@@ -45,8 -67,10 +45,10 @@@ namespace OHO
          void InitMessageSlice(void);
          /* -------------------------------------------------------------------------- */
          void InitDisplayBrightnessSlice(void);
+         /* --------------------------------- 经典蓝牙界面 --------------------------------- */
+         void InitClassicBluetoothSlice(void);
          /* --------------------------------测试界面------------------------------------ */
 -
 +        void InitRotateSlice(void);
          void InitBloodSlice(void);
          void InitMainAlipaySlice(void);
          /* -------------------------------------------------------------------------- */
@@@ -589,13 -585,16 +592,25 @@@ namespace OHO
          NativeAbility::GetInstance().AddSliceProxy(VIEW_FAST_TRAINING_ATTENTION, fasttrainingattention);
      }
  
 +    void NativeLauncher::InitRotateSlice(void)
 +    {
 +        SliceProxy *rotate = new AbilitySliceProxy<RotateView, RotatePresenter>;
 +        if (rotate == nullptr)
 +        {
 +            return;
 +        }
 +        NativeAbility::GetInstance().AddSliceProxy(VIEW_ROTATE, rotate);
 +    }
+     void NativeLauncher::InitClassicBluetoothSlice(void)
+     {
+         WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitClassicBluetoothSlice");
+         SliceProxy *classicbluetooth = new AbilitySliceProxy<ClassicBlueToothView, ClassicBlueToothPresenter>;
+         if (classicbluetooth == nullptr)
+         {
+             WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "classicbluetooth");
+             return;
+         }
+         NativeAbility::GetInstance().AddSliceProxy(VIEW_CLASSIC_BLUETOOTH, classicbluetooth);
+     }
+ 
  }