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 OspCerMgrServiceD.h
19 * @brief This is the header file of the Certificate Manger daemon.
22 #ifndef _CERTMGR_SERVICE_H_
23 #define _CERTMGR_SERVICE_H_
27 #include <FIoIFileEventListener.h>
28 #include <FIoFileEventManager.h>
30 namespace Tizen { namespace Security { namespace Cert
33 class _CertServiceStub;
37 //opt/share/cert-svc/certs/
38 class FileEventListenerCerts
39 : public Tizen::Io::IFileEventListener
42 virtual void OnFileEventOccured(const unsigned long events, const Tizen::Base::String& path, const unsigned int eventId);
45 //opt/share/cert-svc/certs/sim/
46 class FileEventListenerCertsSim
47 : public Tizen::Io::IFileEventListener
50 virtual void OnFileEventOccured(const unsigned long events, const Tizen::Base::String& path, const unsigned int eventId);
53 //opt/share/cert-svc/certs/sim/operator/
54 class FileEventListenerCertsSimOperator
55 : public Tizen::Io::IFileEventListener
58 virtual void OnFileEventOccured(const unsigned long events, const Tizen::Base::String& path, const unsigned int eventId);
61 //opt/share/cert-svc/certs/sim/thirdparty/
62 class FileEventListenerCertsSimThirdparty
63 : public Tizen::Io::IFileEventListener
66 virtual void OnFileEventOccured(const unsigned long events, const Tizen::Base::String& path, const unsigned int eventId);
69 //opt/share/cert-svc/certs/ssl/
70 class FileEventListenerCertsSsl
71 : public Tizen::Io::IFileEventListener
74 virtual void OnFileEventOccured(const unsigned long events, const Tizen::Base::String& path, const unsigned int eventId);
77 //usr/share/cert-svc/ca-certs/
78 class FileEventListenerUsrCaCerts
79 : public Tizen::Io::IFileEventListener
82 virtual void OnFileEventOccured(const unsigned long events, const Tizen::Base::String& path, const unsigned int eventId);
86 * [CertificateService] Manages Certificate privilege API calls
88 class CertificateService
92 ~CertificateService();
93 result Construct(void);
96 Tizen::Security::Cert::_CertServiceStub* __pCertMgrServer;
97 Tizen::Io::FileEventManager __fileEventManagerCerts;
98 Tizen::Io::FileEventManager __fileEventManagerCertsSim;
99 Tizen::Io::FileEventManager __fileEventManagerCertsSimOperator;
100 Tizen::Io::FileEventManager __fileEventManagerCertsSimThirdparty;
101 Tizen::Io::FileEventManager __fileEventManagerCertsSsl;
102 Tizen::Io::FileEventManager __fileEventManagerUsrCaCerts;
103 Tizen::Io::FileEventManager __fileEventManagerUsrCaCertsSsl;
105 FileEventListenerCerts* __pFileEventListenerCerts;
106 FileEventListenerCertsSim* __pFileEventListenerCertsSim;
107 FileEventListenerCertsSimOperator* __pFileEventListenerCertsSimOperator;
108 FileEventListenerCertsSimThirdparty* __pFileEventListenerCertsSimThirdparty;
109 FileEventListenerCertsSsl* __pFileEventListenerCertsSsl;
110 FileEventListenerUsrCaCerts* __pFileEventListenerUsrCaCerts;
113 #endif // _CERTMGR_SERVICE_H_