}
NativeAbility::GetInstance().AddSliceProxy(VIEW_RECORD, record);
}
- void NativeLauncher::InitRecordingPlaySlice(void)
- {
- SliceProxy *recordplay = new AbilitySliceProxy<RecordingPlayerView, RecordingPlayerPresenter>;
- if (recordplay == nullptr)
- {
- return;
- }
- NativeAbility::GetInstance().AddSliceProxy(VIEW_RECORD_PLAY, recordplay);
- }
- void NativeLauncher::InitRecordingDeleteSlice(void)
- {
- SliceProxy *recorddelete = new AbilitySliceProxy<RecordDeleteView, RecordDeletePresenter>;
- if (recorddelete == nullptr)
- {
- return;
- }
- NativeAbility::GetInstance().AddSliceProxy(VIEW_RECORD_DELETE, recorddelete);
- }
+
++
+ void NativeLauncher::InitPhoneSlice(void)
+ {
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneSlice");
+ SliceProxy *phoneview = new AbilitySliceProxy<PhoneView, PhonePresenter>;
+ if (phoneview == nullptr)
+ {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phoneview");
+ return;
+ }
+ NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONE, phoneview);
+ }
+
+ void NativeLauncher::InitPhoneCallSlice(void)
+ {
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneCallSlice");
+ SliceProxy *phonecallview = new AbilitySliceProxy<PhoneCallView, PhoneCallPresenter>;
+ if (phonecallview == nullptr)
+ {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phonecallview");
+ return;
+ }
+ NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONECALL, phonecallview);
+ }
+
+ void NativeLauncher::InitPhoneDirSlice(void)
+ {
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneCallSlice");
+ SliceProxy *phonedirview = new AbilitySliceProxy<PhoneDirView, PhoneDirPresenter>;
+ if (phonedirview == nullptr)
+ {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phonedirview");
+ return;
+ }
+ NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONEDIR, phonedirview);
+ }
+
+ void NativeLauncher::InitPhoneCallingSlice(void)
+ {
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneCallingSlice");
+ SliceProxy *phonecallingview = new AbilitySliceProxy<PhoneCallingView, PhoneCallingPresenter>;
+ if (phonecallingview == nullptr)
+ {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phonecallingview");
+ return;
+ }
+ NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONECALLING, phonecallingview);
+ }
+
+ void NativeLauncher::InitPhoneCallupSlice(void)
+ {
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneCallupSlice");
+ SliceProxy *phonecallupview = new AbilitySliceProxy<PhoneCallupView, PhoneCallupPresenter>;
+ if (phonecallupview == nullptr)
+ {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phonecallview");
+ return;
+ }
+ NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONECALLUP, phonecallupview);
+ }
+
+ void NativeLauncher::InitPhoneRingSlice(void)
+ {
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneRingSlice");
+ SliceProxy *phoneringview = new AbilitySliceProxy<PhoneRingView, PhoneRingPresenter>;
+ if (phoneringview == nullptr)
+ {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phoneringview");
+ return;
+ }
+ NativeAbility::GetInstance().AddSliceProxy(VIEW_PHONERING, phoneringview);
+ }
+
}