2 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file SecurityService.h
19 * @brief This is the header file of the Security service.
22 #ifndef _SECURITY_SERVICE_H_
23 #define _SECURITY_SERVICE_H_
25 #include <FAppServiceApp.h>
28 namespace Tizen { namespace App
33 namespace Tizen { namespace Base { namespace Collection
38 class PrivilegeService;
39 class CertificateService;
42 class _OSP_EXPORT_ SecurityService
43 : public Tizen::App::Service
46 static Tizen::App::Service* CreateInstance(void);
49 SecurityService(void);
50 ~SecurityService(void);
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);
60 static void OnChannelServiceLaunched(keynode_t* node, void* userData);
62 PrivilegeService* __pPrivilegeService;
63 CertificateService* __pCertificateService;
66 #endif // _SECURITY_SERVICE_H_