Tizen 2.1 base
[framework/security/security-server.git] / src / services / ace / socket / ace_service_callbacks.h
1 /*
2  * Copyright (c) 2012 Samsung Electronics Co., Ltd All Rights Reserved
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  * @file        ace_service_callbacks.h
18  * @author      Zofia Abramowska (z.abramowska@samsung.com)
19  * @version     1.0
20  * @brief       Header of Ace Service callbacks
21  */
22
23 #ifndef ACE_SERVICE_CALLBACKS_H_
24 #define ACE_SERVICE_CALLBACKS_H_
25
26 #include <memory>
27 #include <SocketConnection.h>
28 #include <dpl/log/log.h>
29
30 namespace RPC {
31
32 namespace AceServiceCallbacks {
33
34     // IN string subject
35     // IN string resource
36     // IN vector<string> function param names
37     // IN vector<string> function param values
38     // OUT int allow, deny, popup type
39     void checkAccess(SocketConnection * connector);
40
41     // IN string subject
42     // IN string resource
43     // OUT int allow, deny, popup type
44     void checkAccessInstall(SocketConnection * connector);
45
46     // Policy update trigger
47     void updatePolicy(SocketConnection * connector);
48
49 };
50
51 } //namespace RPC
52
53 #endif /* ACE_SERVICE_CALLBACKS_H_ */