Initialize Tizen 2.3
[framework/osp/security-service.git] / inc / SecurityService.h
1 //
2 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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  * @file                SecurityService.h
19  * @brief               This is the header file of the Security service.
20  */
21
22 #ifndef _SECURITY_SERVICE_H_
23 #define _SECURITY_SERVICE_H_
24
25 #include <FAppServiceApp.h>
26 #include <vconf.h>
27
28 namespace Tizen { namespace App
29 {
30         class AppRegistry;
31 }}
32
33 namespace Tizen { namespace Base { namespace Collection
34 {
35         class IList;
36 }}}
37
38 class PrivilegeService;
39 class CertificateService;
40 class DrmService;
41
42 class _OSP_EXPORT_ SecurityService
43         : public Tizen::App::Service
44 {
45 public:
46         static Tizen::App::Service* CreateInstance(void);
47
48 public:
49         SecurityService(void);
50         ~SecurityService(void);
51
52 public:
53         bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
54         bool OnAppInitialized(void);
55         bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
56         void OnLowMemory(void);
57         void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList *pArgs);
58
59 private:
60         static void OnChannelServiceLaunched(keynode_t* node, void* userData);
61
62         PrivilegeService* __pPrivilegeService;
63         CertificateService* __pCertificateService;
64 }; // SecurityService
65
66 #endif // _SECURITY_SERVICE_H_