Remove MS_MEDIA_ERR_THUMB_TOO_BIG
[platform/core/api/media-content.git] / include_product / media_pvr.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
18 #ifndef __TIZEN_MEDIA_PVR_H__
19 #define __TIZEN_MEDIA_PVR_H__
20
21 #include <media_content_type.h>
22 #include <media_content_type_product.h>
23
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif /* __cplusplus */
28
29 /* The enumerations of PVR content Resolution*/
30 typedef enum {
31         MEDIA_PVR_RESOLUTION_DEFAULT = 0,
32         MEDIA_PVR_RESOLUTION_288I,
33         MEDIA_PVR_RESOLUTION_480I,
34         MEDIA_PVR_RESOLUTION_480P,
35         MEDIA_PVR_RESOLUTION_576I,
36         MEDIA_PVR_RESOLUTION_576P,
37         MEDIA_PVR_RESOLUTION_720P,
38         MEDIA_PVR_RESOLUTION_1080I,
39         MEDIA_PVR_RESOLUTION_1080P,
40         MEDIA_PVR_RESOLUTION_AUDIO_ONLY,
41         MEDIA_PVR_RESOLUTION_MAX
42 } media_pvr_resolution_e;
43
44 /* The enumerations of PVR content aspectratio*/
45 typedef enum {
46         MEDIA_PVR_ASPECTRATIO_UNKNOWN   = 0,
47         MEDIA_PVR_ASPECTRATIO_100_100           = 1, /* 1:1 */
48         MEDIA_PVR_ASPECTRATIO_300_400           = 2, /* 3:4 */
49         MEDIA_PVR_ASPECTRATIO_900_1600  = 3, /* 9:16 */
50         MEDIA_PVR_ASPECTRATIO_100_221           = 4, /* 1:2.21 */
51 } media_pvr_aspectratio_e;
52
53 int media_pvr_get_media_count_from_db(filter_h filter, int *media_count);
54 int media_pvr_foreach_media_from_db(filter_h filter, media_pvr_cb callback, void *user_data);
55 int media_pvr_destroy(media_pvr_h pvr);
56 int media_pvr_clone(media_pvr_h *dst, media_pvr_h src);
57 int media_pvr_get_pvr_from_db(const char *media_id, media_pvr_h *pvr);
58 int media_pvr_get_media_id(media_pvr_h pvr, char **media_id);
59 int media_pvr_get_channel_name(media_pvr_h pvr, char **channel_name);
60 int media_pvr_get_channel_num(media_pvr_h pvr, char **channel_num);
61 int media_pvr_get_program_title(media_pvr_h pvr, char **program_title);
62 int media_pvr_get_program_crid(media_pvr_h pvr, char **program_crid);
63 int media_pvr_get_guidance(media_pvr_h pvr, char **guidance);
64 int media_pvr_get_synopsis(media_pvr_h pvr, char **synopsis);
65 int media_pvr_get_genre(media_pvr_h pvr, char **genre);
66 int media_pvr_get_language(media_pvr_h pvr, char **language);
67 int media_pvr_get_path(media_pvr_h pvr, char **path);
68 int media_pvr_get_storage_id(media_pvr_h pvr, char **storage_id);
69 int media_pvr_get_size(media_pvr_h pvr, unsigned long long *size);
70 int media_pvr_get_timezone(media_pvr_h pvr, int *timezone);
71 int media_pvr_get_ptc(media_pvr_h pvr, int *ptc);
72 int media_pvr_get_major(media_pvr_h pvr, int *major);
73 int media_pvr_get_minor(media_pvr_h pvr, int *minor);
74 int media_pvr_get_channel_type(media_pvr_h pvr, int *channel_type);
75 int media_pvr_get_program_num(media_pvr_h pvr, int *program_num);
76 int media_pvr_get_service_profile(media_pvr_h pvr,unsigned int *service_profile);
77 int media_pvr_get_duration(media_pvr_h pvr, int *duration);
78 int media_pvr_get_embargo_time(media_pvr_h pvr, int *embaro_time);
79 int media_pvr_get_expiry_time(media_pvr_h pvr, int *expiry_time);
80 int media_pvr_get_parental_rating(media_pvr_h pvr, int *parental_rating);
81 int media_pvr_get_start_time(media_pvr_h pvr, int *start_time);
82 int media_pvr_get_program_start_time(media_pvr_h pvr, int *program_start_time);
83 int media_pvr_get_program_end_time(media_pvr_h pvr, int *end_time);
84 int media_pvr_get_program_date(media_pvr_h pvr, int *program_date);
85 int media_pvr_get_timer_record(media_pvr_h pvr, bool* timer_record);
86 int media_pvr_get_series_record(media_pvr_h pvr, bool* series_record);
87 int media_pvr_get_hd(media_pvr_h pvr, int* hd);
88 int media_pvr_get_subtitle(media_pvr_h pvr, bool* subtitle);
89 int media_pvr_get_ttx(media_pvr_h pvr, bool* ttx);
90 int media_pvr_get_ad(media_pvr_h pvr, bool* ad);
91 int media_pvr_get_hard_of_hearing_radio(media_pvr_h pvr, bool* hardOfHearingRadio);
92 int media_pvr_get_data_service(media_pvr_h pvr, bool* data_service);
93 int media_pvr_get_content_lock(media_pvr_h pvr, bool* content_lock);
94 int media_pvr_get_content_watch(media_pvr_h pvr, bool* content_watch);
95 int media_pvr_get_has_audio_only(media_pvr_h pvr, bool* has_audio_only);
96 int media_pvr_get_is_local_record(media_pvr_h pvr, bool* is_local_record);
97 int media_pvr_get_resolution(media_pvr_h pvr, media_pvr_resolution_e* resolution);
98 int media_pvr_get_aspectratio(media_pvr_h pvr, media_pvr_aspectratio_e* aspectratio);
99 int media_pvr_get_modified_month(media_pvr_h pvr, char **modified_month);
100 int media_pvr_get_sports_type(media_pvr_h pvr, int* sports_type);
101 int media_pvr_get_guidance_length(media_pvr_h pvr, int* guidance_length);
102 int media_pvr_get_tvmode(media_pvr_h pvr, int* tvmode);
103 int media_pvr_get_play_count(media_pvr_h pvr, int* play_count);
104 int media_pvr_get_private_data(media_pvr_h pvr, char **private_data);
105 int media_pvr_get_highlight(media_pvr_h pvr, bool *highlight);
106 int media_pvr_set_play_count(media_pvr_h pvr, int play_count);
107 int media_pvr_set_program_title(media_pvr_h pvr, const char *program_title);
108 int media_pvr_set_content_lock(media_pvr_h pvr, bool content_lock);
109 int media_pvr_set_content_watch(media_pvr_h pvr, bool content_watch);
110 int media_pvr_set_highlight(media_pvr_h pvr, bool highlight);
111 int media_pvr_update_to_db(media_pvr_h pvr);
112 int media_pvr_group_foreach_media_from_db(const char *group_name, media_group_e group, filter_h filter, media_pvr_cb callback, void *user_data);
113 int media_pvr_set_is_local_record(const char *pvr_path, bool is_local_record);
114
115 #ifdef __cplusplus
116 }
117 #endif /* __cplusplus */
118
119 #endif /* __TIZEN_MEDIA_PVR_H__ */