tv-service  0.1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
tv_service_proxy_channel_info.h
Go to the documentation of this file.
1 /*
2 .*
3 .* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
4 .*
5 .* libtv-service TV Service Library
6 .*
7 .* Filename: tv_service_proxy_channel_info.h
8 .* Description: tv service proxy interface
9 .* Contact: LiuKun <k2.liu@samsung.com>
10 .* Licensed under the Apache License, Version 2.0 (the "License");
11 .* you may not use this file except in compliance with the License.
12 .* You may obtain a copy of the License at
13 .*
14 .* http://www.apache.org/licenses/LICENSE-2.0
15 .*
16 .* Unless required by applicable law or agreed to in writing, software
17 .* distributed under the License is distributed on an "AS IS" BASIS,
18 .* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 .* See the License for the specific language governing permissions and
20 .* limitations under the License.
21 .*
22 .*/
23 
28 #ifndef __TV_SERVICE_PROXY_CHANNEL_INFOR_H__
29 #define __TV_SERVICE_PROXY_CHANNEL_INFOR_H__
30 
31 #include <glib.h>
32 #include <glib-object.h>
33 #include "tv_service_proxy_base.h"
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 #define PROGRAM_NAME_MAX_LEN 25
40 
46 typedef struct
47 {
48  guint service_id;
49  guint frequency;
50  guint service_type;
51  guint channel_type;
52 
54  gulong source_id;
55  gulong stream_id;
56  gulong pcr_id;
57  gulong major;
58  gulong minor;
59  gulong vpid;
60  gulong apid;
61  gulong pmt_pid;
62 
63  gboolean hide_guide;
64  gboolean hidden;
65  gboolean locked;
66  gboolean remembered;
67  gboolean save_by_psi;
68  gboolean digital;
69  gboolean favorite;
70 
71  gchar program_name[PROGRAM_NAME_MAX_LEN];
72 
78 
83 typedef enum {
93 
98 typedef enum {
104 
109 typedef enum {
118 
119 #define CHANNEL_FILTER_STRING_MAX_LEN 100
120 
125 typedef struct {
128  GValue *value;
130 
135 typedef enum
136 {
146 
147 
148 typedef void (*TvServiceChannelCallback)(TvServiceChannelEvent event, gpointer data, gpointer user_data);
149 
160 gint tv_service_get_channel (gint service_id, TvServiceChannel * channel);
161 
173 gint tv_service_get_channel_list (TvServiceChannelMode mode, TvServiceAntenna type, GList ** channels);
174 
188 gint tv_service_get_channel_list_ex (TvServiceChannelMode mode, TvServiceAntenna type, GList ** channels,
189  GList * filter, TvServiceChannelSortType sort_type);
190 
199 gint tv_service_free_channel_list (GList * channels);
200 
209 
218 
228 gint tv_service_add_channel (gint service_id);
229 
239 gint tv_service_delete_channel (gint service_id);
240 
250 gint tv_service_add_favorite_channel (gint service_id);
251 
261 gint tv_service_delete_favorite_channel (gint service_id);
262 
273 gint tv_service_lock_channel (gint service_id, gchar * password);
274 
285 gint tv_service_unlock_channel (gint service_id, gchar * password);
286 
297 gint tv_service_get_channel_locked (gint service_id, gboolean * lock);
298 
311 
322 
323 #ifdef __cplusplus
324 }
325 #endif
326 
327 #endif
328