From b90ae59700f4a7f819b2e6a8e5f07cee6e1c8478 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Mon, 25 Mar 2024 15:32:09 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=A3=E5=86=B3=E5=88=A0=E9=99=A4=E4=B8=8D?= =?utf8?q?=E4=BA=86=E5=BD=95=E9=9F=B3=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/record/include/RecordingModel.h | 2 +- .../fd230app/nativeui/record/src/RecordingModel.cpp | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/record/include/RecordingModel.h b/code/sdk/application/wearable/fd230app/nativeui/record/include/RecordingModel.h index 96c691022..e482a5022 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/record/include/RecordingModel.h +++ b/code/sdk/application/wearable/fd230app/nativeui/record/include/RecordingModel.h @@ -81,7 +81,7 @@ namespace OHOS void Recording_StartTimer(uint32_t interval); void Recording_StopTimer(void); char *DisplayRecordDuration(void); - + const char * GetRecordDirectory() const; private: RecordingModel(); RecordingModel(const RecordingModel &) = delete; diff --git a/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp index f3e4e3471..b96dfa169 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp @@ -203,8 +203,8 @@ namespace OHOS } /* - * @brief 退出录音播放界面后清除播放器资源 - */ + * @brief 退出录音播放界面后清除播放器资源 + */ void RecordingModel::ClearRecordingPlayer(void) { if (GetPlayerCtr() != nullptr) @@ -620,6 +620,10 @@ namespace OHOS return RecordingTimeAndDuration; } + const char *RecordingModel::GetRecordDirectory() const + { + return directory.c_str(); + } /* ----------------------------------- 定时器 ---------------------------------- */ // 声明定时器变量 osTimerId_t g_timer = NULL; -- 2.17.1