Coding rule check
[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                 virtual void AutoStart(void);
39
40                 virtual void SttIdle(void);
41
42                 virtual void SttRecording(void);
43
44                 virtual void SttProcessing(void);
45
46                 virtual void OnError(stt_error_e reason);
47
48                 void SetVoiceData(void *data);
49
50                 void *owner;
51 };
52
53 }} /** end of is::stt*/