3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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.
18 #ifndef _SPEECH_APP_MAIN_FORM_H_
19 #define _SPEECH_APP_MAIN_FORM_H_
23 #include <FUiScenes.h>
26 class SpeechAppMainForm
27 : public Tizen::Ui::Controls::Form
28 , public Tizen::Ui::IActionEventListener
29 , public Tizen::Ui::Controls::IFormBackEventListener
30 , public Tizen::Ui::Scenes::ISceneEventListener
33 SpeechAppMainForm(void);
34 virtual ~SpeechAppMainForm(void);
36 bool Initialize(void);
38 virtual result OnInitializing(void);
39 virtual result OnTerminating(void);
40 virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
41 virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
42 virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
43 virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
44 void ShowMsgBox(void);
46 static const int ID_BUTTON_STT = 101;
47 static const int ID_BUTTON_TTS = 102;
50 #endif //_SPEECHAPP_MAIN_FORM_H_