Tizen 2.1 base
[platform/framework/web/wrt-security.git] / src / services / popup / dbus / api / popup_ace_data_types.h
1 /*
2  * Copyright (c) 2011 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    popup_ace_data_types.h
18  * @author  Pawel Sikorski (p.sikorski@samsung.com)
19  * @version 1.0
20  * @brief
21  */
22
23 #ifndef POPUP_ACE_DATA_TYPES_H_
24 #define POPUP_ACE_DATA_TYPES_H_
25
26 #include <vector>
27 #include <string>
28 #include <dpl/ace-dao-ro/wrt_db_types.h>
29
30 // additional data needed by PolicyEvaluaor to recognize Popup Response
31 struct AceUserdata
32 {
33     //TODO INVALID_WIDGET_HANDLE is defined in wrt_plugin_export.h.
34     // I do not want to include that file here...
35     AceUserdata(): handle(-1) {}
36
37     WidgetHandle handle;
38     std::string subject;
39     std::string resource;
40     std::vector<std::string> paramKeys;
41     std::vector<std::string> paramValues;
42     std::string sessionId;
43 };
44
45 typedef bool SecurityStatus;
46
47 #endif /* POPUP_ACE_DATA_TYPES_H_ */