1 /*
2 * Copyright (c) 2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15 #include "engine_base.h"
16 #include "hdf_base.h"
17
18 namespace OHOS {
19 namespace IntelligentVoice {
20 namespace Engine {
SetListener(std::shared_ptr<IEngineCallback> listener)21 IntellVoiceStatus EngineBase::SetListener(std::shared_ptr<IEngineCallback> listener)
22 {
23 callback_ = listener;
24 return HDF_SUCCESS;
25 }
26
Release()27 IntellVoiceStatus EngineBase::Release()
28 {
29 callback_ = nullptr;
30 return HDF_SUCCESS;
31 }
32
SetParameter(const std::string &)33 IntellVoiceStatus EngineBase::SetParameter(const std::string & /* keyValueList */)
34 {
35 return HDF_SUCCESS;
36 }
37
GetParameter(const std::string &,getParameterCb)38 IntellVoiceStatus EngineBase::GetParameter(const std::string & /* keyList */, getParameterCb /* cb */)
39 {
40 return HDF_SUCCESS;
41 }
42
Write(const uint8_t *,uint32_t)43 IntellVoiceStatus EngineBase::Write(const uint8_t * /* buffer */, uint32_t /* size */)
44 {
45 return HDF_SUCCESS;
46 }
47
Stop()48 IntellVoiceStatus EngineBase::Stop()
49 {
50 return HDF_SUCCESS;
51 }
52
Cancel()53 IntellVoiceStatus EngineBase::Cancel()
54 {
55 return HDF_SUCCESS;
56 }
57
ReadFileData(ContentType,getFileDataCb)58 IntellVoiceStatus EngineBase::ReadFileData(ContentType /* type */, getFileDataCb /* cb */)
59 {
60 return HDF_SUCCESS;
61 }
62 }
63 }
64 }
65