NUGU SDK Linux  1.7.6
sound_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_SOUND_INTERFACE_H__
18 #define __NUGU_SOUND_INTERFACE_H__
19 
21 #include <nugu.h>
22 
23 namespace NuguCapability {
24 
25 using namespace NuguClientKit;
26 
42 enum class BeepType {
44 };
45 
50 class NUGU_API ISoundListener : virtual public ICapabilityListener {
51 public:
52  virtual ~ISoundListener() = default;
53 
59  virtual void handleBeep(BeepType beep_type, const std::string& dialog_id) = 0;
60 };
61 
66 class NUGU_API ISoundHandler : virtual public ICapabilityInterface {
67 public:
68  virtual ~ISoundHandler() = default;
69 
74  virtual void sendBeepResult(bool is_succeeded) = 0;
75 };
76 
81 } // NuguCapability
82 
83 #endif /* __NUGU_SOUND_INTERFACE_H__ */
sound handler interface
Definition: sound_interface.hh:66
virtual void sendBeepResult(bool is_succeeded)=0
Send beep play result.
sound listener interface
Definition: sound_interface.hh:50
virtual void handleBeep(BeepType beep_type, const std::string &dialog_id)=0
Handle beep sound which is related to received beep name.
capability interface
Definition: capability_interface.hh:82
capability listener interface
Definition: capability_interface.hh:60
BeepType
Beep type list.
Definition: sound_interface.hh:42