Add initial code for inputdelegator
[platform/core/uifw/inputdelegator.git] / inc / SttFeedback.h
1 /*
2  * Copyright (c) 2016 Samsung Electronics 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
18 #pragma once
19
20
21 #include "SttManager.h"
22
23 namespace is {
24 namespace stt {
25
26 class SttFeedback : public ISttFeedback
27 {
28         public :
29                 SttFeedback();
30                 virtual ~SttFeedback();
31
32                 virtual void OnResult(
33                         std::string asrtype,
34                         stt_result_event_e event,
35                         std::vector<std::string> results,
36                         std::string msg
37                 );
38
39                 virtual void AutoStart(void);
40
41                 virtual void SttIdle(void);
42
43                 virtual void SttRecording(void);
44
45                 virtual void SttProcessing(void);
46
47                 virtual void OnError(stt_error_e reason);
48
49                 void SetVoiceData(void *data);
50
51                 void *owner;
52 };
53
54 }} /** end of is::stt*/