[Release] livebox.web-provider-1.9
[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.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://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_insert_box_info(
37         const char* box_id,
38         const char* app_id,
39         const char* box_type,
40         int auto_launch);
41 DEPRECATED_API int web_provider_livebox_insert_box_type(
42         const char* box_id,
43         const char* app_id,
44         const char* box_type);
45 EXPORT_API int web_provider_livebox_delete_by_box_id(const char* box_id);
46 EXPORT_API int web_provider_livebox_delete_by_app_id(const char* app_id);
47 EXPORT_API int web_provider_livebox_delete_by_type(const char* type);
48
49 DEPRECATED_API const char* web_provider_info_get_default_type();
50 DEPRECATED_API const char* web_provider_info_get_box_type(const char* box_id);
51 DEPRECATED_API int web_provider_info_insert_box_type(
52         const char* box_id,
53         const char* app_id,
54         const char* box_type);
55 DEPRECATED_API int web_provider_info_delete_by_box_id(const char* box_id);
56 DEPRECATED_API int web_provider_info_delete_by_app_id(const char* app_id);
57 DEPRECATED_API int web_provider_info_delete_by_type(const char* type);
58
59 #ifdef __cplusplus
60 }
61 #endif
62 #endif //WEB_PROVIDER_LIVEBOX_INFO_H