0bd1a1ed7c7f9865a8c8e8938c5c16a4dd87e417
[platform/framework/native/certificate-selector.git] / inc / CertificateSelectorApp.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
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 /**
19  * @file        CertificateSelectorApp.h
20  * @brief       This is the header file for the %CertificateSelectorApp class.
21  *
22  * This header file contains the declarations of the %CertificateSelectorApp class.
23  */
24
25 #ifndef _CERTIFICATE_SELECTOR_APP_H_
26 #define _CERTIFICATE_SELECTOR_APP_H_
27
28 #include <FAppUiApp.h>
29 #include <FSysIScreenEventListener.h>
30 #include <FSysPowerManager.h>
31 #include <FAppIAppControlProviderEventListener.h>
32
33 namespace Tizen { namespace App {
34 class AppRegistry;
35 } } // Tizen::App
36
37 class CertificateSelectorApp
38         : public Tizen::App::UiApp
39         , public Tizen::System::IScreenEventListener
40         , public Tizen::App::IAppControlProviderEventListener
41 {
42 public:
43         CertificateSelectorApp(void);
44         virtual~CertificateSelectorApp(void);
45
46         static Tizen::App::UiApp* CreateInstance(void);
47
48         virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
49         virtual bool OnAppInitialized(void); 
50         virtual bool OnAppWillTerminate(void); 
51         virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
52         virtual void OnForeground(void);
53         virtual void OnBackground(void);
54         virtual void OnLowMemory(void);
55         virtual void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
56         virtual void OnScreenOn(void);
57         virtual void OnScreenOff(void);
58         virtual void OnAppControlRequestReceived(RequestId reqId, const Tizen::Base::String& operationId, const Tizen::Base::String* pUriData, const Tizen::Base::String* pMimeType, const Tizen::Base::Collection::IMap* pExtraData);
59
60 private:
61         RequestId __reqId;
62 };
63
64 #endif // _CERTIFICATE_SELECTOR_APP_H_