rosfran@68
|
1 |
/**
|
rosfran@68
|
2 |
* GMyth Library
|
rosfran@68
|
3 |
*
|
rosfran@68
|
4 |
* @file gmyth/gmyth_livetv.h
|
rosfran@68
|
5 |
*
|
rosfran@68
|
6 |
* @brief <p> GMythLiveTV starts a remote TV session with the MythTV backend.
|
rosfran@68
|
7 |
*
|
rosfran@68
|
8 |
* Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
|
rosfran@68
|
9 |
* @author Rosfran Lins Borges <rosfran.borges@indt.org.br>
|
rosfran@68
|
10 |
*
|
rosfran@68
|
11 |
*//*
|
rosfran@68
|
12 |
*
|
rosfran@68
|
13 |
* This program is free software; you can redistribute it and/or modify
|
rosfran@68
|
14 |
* it under the terms of the GNU Lesser General Public License as published by
|
rosfran@68
|
15 |
* the Free Software Foundation; either version 2 of the License, or
|
rosfran@68
|
16 |
* (at your option) any later version.
|
rosfran@68
|
17 |
*
|
rosfran@68
|
18 |
* This program is distributed in the hope that it will be useful,
|
rosfran@68
|
19 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
rosfran@68
|
20 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
rosfran@68
|
21 |
* GNU General Public License for more details.
|
rosfran@68
|
22 |
*
|
rosfran@68
|
23 |
* You should have received a copy of the GNU Lesser General Public License
|
rosfran@68
|
24 |
* along with this program; if not, write to the Free Software
|
rosfran@68
|
25 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
rosfran@68
|
26 |
*/
|
rosfran@68
|
27 |
|
rosfran@41
|
28 |
#ifndef GMYTH_LIVETV_H_
|
rosfran@41
|
29 |
#define GMYTH_LIVETV_H_
|
rosfran@41
|
30 |
|
leo_sobral@213
|
31 |
#include <glib.h>
|
rosfran@41
|
32 |
#include <glib-object.h>
|
rosfran@41
|
33 |
|
rosfran@216
|
34 |
#include "gmyth_recorder.h"
|
rosfran@216
|
35 |
#include "gmyth_tvchain.h"
|
rosfran@216
|
36 |
#include "gmyth_monitor_handler.h"
|
rosfran@216
|
37 |
#include "gmyth_file_transfer.h"
|
rosfran@216
|
38 |
#include "gmyth_programinfo.h"
|
rosfran@216
|
39 |
#include "gmyth_backendinfo.h"
|
rosfran@41
|
40 |
|
leo_sobral@213
|
41 |
G_BEGIN_DECLS
|
rosfran@41
|
42 |
|
rosfran@41
|
43 |
#define GMYTH_LIVETV_TYPE (gmyth_livetv_get_type ())
|
rosfran@41
|
44 |
#define GMYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_LIVETV_TYPE, GMythLiveTV))
|
rosfran@41
|
45 |
#define GMYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_LIVETV_TYPE, GMythLiveTVClass))
|
rosfran@41
|
46 |
#define IS_GMYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_LIVETV_TYPE))
|
rosfran@41
|
47 |
#define IS_GMYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_LIVETV_TYPE))
|
rosfran@41
|
48 |
#define GMYTH_LIVETV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_LIVETV_TYPE, GMythLiveTVClass))
|
rosfran@41
|
49 |
|
rosfran@41
|
50 |
typedef struct _GMythLiveTV GMythLiveTV;
|
rosfran@41
|
51 |
typedef struct _GMythLiveTVClass GMythLiveTVClass;
|
rosfran@41
|
52 |
|
rosfran@41
|
53 |
struct _GMythLiveTVClass
|
rosfran@41
|
54 |
{
|
rosfran@41
|
55 |
GObjectClass parent_class;
|
rosfran@41
|
56 |
|
rosfran@41
|
57 |
/* callbacks */
|
rosfran@41
|
58 |
};
|
rosfran@41
|
59 |
|
rosfran@41
|
60 |
struct _GMythLiveTV
|
rosfran@41
|
61 |
{
|
rosfran@216
|
62 |
GObject parent;
|
rosfran@216
|
63 |
|
rosfran@216
|
64 |
GString *local_hostname;
|
rosfran@216
|
65 |
|
rosfran@216
|
66 |
GMythBackendInfo *backend_info;
|
rosfran@41
|
67 |
|
rosfran@216
|
68 |
GMythRecorder *recorder;
|
rosfran@216
|
69 |
GMythTVChain *tvchain;
|
rosfran@216
|
70 |
GMythProgramInfo *proginfo;
|
rosfran@216
|
71 |
|
rosfran@216
|
72 |
GMythFileTransfer *file_transfer;
|
rosfran@203
|
73 |
|
rosfran@203
|
74 |
GMythMonitorHandler *monitor;
|
rosfran@41
|
75 |
|
rosfran@216
|
76 |
gboolean is_livetv;
|
rosfran@216
|
77 |
gboolean setup_done;
|
rosfran@41
|
78 |
|
rosfran@41
|
79 |
};
|
rosfran@41
|
80 |
|
rosfran@41
|
81 |
GType gmyth_livetv_get_type (void);
|
rosfran@41
|
82 |
|
rosfran@216
|
83 |
GMythLiveTV* gmyth_livetv_new ();
|
rosfran@41
|
84 |
|
rosfran@41
|
85 |
void gmyth_livetv_start_playing (GMythLiveTV *livetv);
|
rosfran@41
|
86 |
void gmyth_livetv_stop_playing (GMythLiveTV *livetv);
|
rosfran@41
|
87 |
|
melunko@117
|
88 |
gboolean gmyth_livetv_setup (GMythLiveTV *livetv, GMythBackendInfo *backend_info);
|
rosfran@237
|
89 |
gboolean gmyth_livetv_channel_setup ( GMythLiveTV *livetv, gint channel, GMythBackendInfo *backend_info );
|
rosfran@54
|
90 |
gboolean gmyth_livetv_next_program_chain ( GMythLiveTV *livetv );
|
rosfran@41
|
91 |
|
rosfran@216
|
92 |
GMythFileTransfer *gmyth_livetv_create_file_transfer( GMythLiveTV *livetv );
|
rosfran@216
|
93 |
|
rosfran@220
|
94 |
gboolean gmyth_livetv_monitor_handler_start( GMythLiveTV *livetv );
|
rosfran@220
|
95 |
void gmyth_livetv_monitor_handler_stop( GMythLiveTV *livetv );
|
rosfran@220
|
96 |
|
leo_sobral@213
|
97 |
G_END_DECLS
|
rosfran@41
|
98 |
|
rosfran@41
|
99 |
#endif /*GMYTH_LIVETV_H_*/
|