2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FUixSpeechITextToSpeechEventListener.h
20 * @brief This is the header file for the %ITextToSpeechEventListener interface.
22 * This header file contains the declarations of the %ITextToSpeechEventListener interface.
25 #ifndef _FUIX_SPEECH_ITEXT_TO_SPEECH_EVENT_LISTENER_H_
26 #define _FUIX_SPEECH_ITEXT_TO_SPEECH_EVENT_LISTENER_H_
28 #include <FUixSpeechTextToSpeechTypes.h>
29 #include <FBaseRtIEventListener.h>
31 namespace Tizen { namespace Uix { namespace Speech
35 * @interface ITextToSpeechEventListener
36 * @brief This interface is a listener interface for speech synthesis events.
40 * @remarks @b Header @b %file: @b \#include @b <FUix.h> @n
41 * @b Library: @b osp-speech-tts @n
43 * The %ITextToSpeechEventListener interface is a listener interface for speech synthesis events.
44 * It provides methods that are invoked by the voice engine which notifies when the Text-To-Speech service undergoes a status
45 * change or returns an error. @n
46 * For more information on the Text-To-Speech service, see <a href="../org.tizen.native.appprogramming/html/guide/uix/text_to_speech.htm">Text-To-Speech</a>.
49 class _OSP_EXPORT_ ITextToSpeechEventListener
50 : virtual public Tizen::Base::Runtime::IEventListener
55 * This polymorphic destructor should be overridden if required. @n
56 * This way, the destructors of the derived classes are called when the destructor of this interface is called.
60 virtual ~ITextToSpeechEventListener(void) {}
63 * Called when the Text-To-Speech service is initialized.
67 * @see TextToSpeech::Initialize()
69 virtual void OnTextToSpeechInitialized(void) = 0;
72 * Called when the status of the Text-To-Speech service is changed.
76 * @param[in] status The status of the Text-To-Speech service
78 virtual void OnTextToSpeechStatusChanged(Tizen::Uix::Speech::TextToSpeechStatus status) = 0;
81 * Called when an error occurs in the Text-To-Speech service.
85 * @param[in] error The reason for the error in the Text-To-Speech service
87 virtual void OnTextToSpeechErrorOccurred(Tizen::Uix::Speech::TextToSpeechError error) = 0;
90 * Called when the Text-To-Speech service is completed.
94 virtual void OnTextToSpeechCompleted(void) = 0;
98 // This method is for internal use only. Using this method can cause behavioral, security-related,
99 // and consistency-related issues in the application.
101 virtual void ITextToSpeechEventListener_Reserved1(void) {}
104 // This method is for internal use only. Using this method can cause behavioral, security-related,
105 // and consistency-related issues in the application.
107 virtual void ITextToSpeechEventListener_Reserved2(void) {}
110 // This method is for internal use only. Using this method can cause behavioral, security-related,
111 // and consistency-related issues in the application.
113 virtual void ITextToSpeechEventListener_Reserved3(void) {}
117 } } } // Tizen::Uix::Speech
119 #endif // _FUIX_ITEXT_TO_SPEECH_EVENT_LISTENER_H_