NUGU SDK Linux  1.7.5
mic_interface.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019 SK Telecom Co., Ltd. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __NUGU_MIC_INTERFACE_H__
18 #define __NUGU_MIC_INTERFACE_H__
19 
21 
22 namespace NuguCapability {
23 
24 using namespace NuguClientKit;
25 
40 enum class MicStatus {
41  ON,
42  OFF
43 };
44 
49 class IMicListener : virtual public ICapabilityListener {
50 public:
51  virtual ~IMicListener() = default;
52 
57  virtual void micStatusChanged(MicStatus& status) = 0;
58 };
59 
64 class IMicHandler : virtual public ICapabilityInterface {
65 public:
66  virtual ~IMicHandler() = default;
67 
71  virtual void enable() = 0;
72 
76  virtual void disable() = 0;
77 };
78 
83 } // NuguCapability
84 
85 #endif /* __NUGU_MIC_INTERFACE_H__ */
mic handler interface
Definition: mic_interface.hh:64
virtual void disable()=0
if application disables mic, EPD and KWD will not work.
virtual void enable()=0
application enables mic.
mic listener interface
Definition: mic_interface.hh:49
virtual void micStatusChanged(MicStatus &status)=0
Report to the user mic status changed.
capability interface
Definition: capability_interface.hh:81
capability listener interface
Definition: capability_interface.hh:59
MicStatus
MicStatus.
Definition: mic_interface.hh:40