Tizen 2.1 base
[sdk/ide/native-sample.git] / samples / native / partner / cpp / Sample / Tizen C++ / FaceTracker / FaceTracker / project / inc / FaceTracker.h
1 //
2 // Tizen C++ SDK
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.tizenopensource.org/license
10 //
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.
16 //
17
18 #ifndef _FACE_TRACKER_H_
19 #define _FACE_TRACKER_H_
20
21 #include <FApp.h>
22 #include <FBase.h>
23 #include <FSystem.h>
24 #include <FUi.h>
25
26 /**
27  * [FaceTrackerApp] UiApp must inherit from UiApp class
28  * which provides basic features necessary to define an UiApp.
29  */
30 class FaceTrackerApp
31         : public Osp::App::UiApp
32         , public Osp::System::IScreenEventListener
33 {
34 public:
35         FaceTrackerApp(void);
36         virtual~FaceTrackerApp(void);
37
38         static Osp::App::UiApp* CreateInstance(void);
39
40         // Called when the UiApp is initializing.
41         virtual bool OnAppInitializing(Osp::App::AppRegistry& appRegistry);
42
43         // Called when the UiApp initializing is finished. 
44         virtual bool OnAppInitialized(void);
45
46         // Called when the UiApp is requested to terminate. 
47         virtual bool OnAppWillTerminate(void);
48
49         // Called when the UiApp is terminating.
50         virtual bool OnAppTerminating(Osp::App::AppRegistry& appRegistry, bool forcedTermination = false);
51
52         // Called when the UiApp's frame moves to the top of the screen.
53         virtual void OnForeground(void);
54
55         // Called when this UiApp's frame is moved from top of the screen to the background.
56         virtual void OnBackground(void);
57
58         // Called when the system memory is not sufficient to run the UiApp any further.
59         virtual void OnLowMemory(void);
60
61         // Called when the battery level changes.
62         virtual void OnBatteryLevelChanged(Osp::System::BatteryLevel batteryLevel);
63
64         // Called when the screen turns on.
65         virtual void OnScreenOn(void);
66
67         // Called when the screen turns off.
68         virtual void OnScreenOff(void);
69 };
70
71 #endif