The license change version 1.0 to version 1.1
[platform/framework/web/web-provider.git] / src / API / web_provider_livebox_info.h
1 /*
2  * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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    web_provider_livebox_info.h 
18  * @author  Yunchan Cho (yunchan.cho@samsung.com)
19  */
20 #ifndef WEB_PROVIDER_LIVEBOX_INFO_H 
21 #define WEB_PROVIDER_LIVEBOX_INFO_H
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 #define EXPORT_API      __attribute__((visibility("default")))
28 #define DEPRECATED_API  __attribute__((visibility("default"))) __attribute__((deprecated))
29
30 /* TODO doxygen comments are needed to each exported API */
31
32 EXPORT_API const char* web_provider_livebox_get_default_type();
33 EXPORT_API const char* web_provider_livebox_get_box_type(const char* box_id);
34 EXPORT_API const char* web_provider_livebox_get_app_id(const char* box_id);
35 EXPORT_API int web_provider_livebox_get_auto_launch(const char* box_id);
36 EXPORT_API int web_provider_livebox_get_mouse_event(const char* box_id);
37 EXPORT_API int web_provider_livebox_insert_box_info(
38         const char* box_id,
39         const char* app_id,
40         const char* box_type,
41         int auto_launch, 
42         int mouse_event);
43 DEPRECATED_API int web_provider_livebox_insert_box_type(
44         const char* box_id,
45         const char* app_id,
46         const char* box_type);
47 EXPORT_API int web_provider_livebox_delete_by_box_id(const char* box_id);
48 EXPORT_API int web_provider_livebox_delete_by_app_id(const char* app_id);
49 EXPORT_API int web_provider_livebox_delete_by_type(const char* type);
50
51 DEPRECATED_API const char* web_provider_info_get_default_type();
52 DEPRECATED_API const char* web_provider_info_get_box_type(const char* box_id);
53 DEPRECATED_API int web_provider_info_insert_box_type(
54         const char* box_id,
55         const char* app_id,
56         const char* box_type);
57 DEPRECATED_API int web_provider_info_delete_by_box_id(const char* box_id);
58 DEPRECATED_API int web_provider_info_delete_by_app_id(const char* app_id);
59 DEPRECATED_API int web_provider_info_delete_by_type(const char* type);
60
61 #ifdef __cplusplus
62 }
63 #endif
64 #endif //WEB_PROVIDER_LIVEBOX_INFO_H