NUGU SDK Linux  1.7.5
routine_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_ROUTINE_INTERFACE_H__
18 #define __NUGU_ROUTINE_INTERFACE_H__
19 
21 
22 namespace NuguCapability {
23 
24 using namespace NuguClientKit;
25 
41 class IRoutineListener : virtual public ICapabilityListener {
42 public:
43  virtual ~IRoutineListener() = default;
44 };
45 
50 class IRoutineHandler : virtual public ICapabilityInterface {
51 public:
52  virtual ~IRoutineHandler() = default;
53 
60  virtual bool startRoutine(const std::string& dialog_id, const std::string& data) = 0;
61 
68  virtual bool next() = 0;
69 
76  virtual bool prev() = 0;
77 };
78 
83 } // NuguCapability
84 
85 #endif /* __NUGU_ROUTINE_INTERFACE_H__ */
routine handler interface
Definition: routine_interface.hh:50
virtual bool prev()=0
move to the previous action and process.
virtual bool startRoutine(const std::string &dialog_id, const std::string &data)=0
start routine using by data which is composed of Routine.Start directive.
virtual bool next()=0
move to the next action and process.
routine listener interface
Definition: routine_interface.hh:41
capability interface
Definition: capability_interface.hh:81
capability listener interface
Definition: capability_interface.hh:59