1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/branches/gmyth-0.1b/src/gmyth_livetv.h Thu Feb 08 20:57:31 2007 +0000
1.3 @@ -0,0 +1,101 @@
1.4 +/**
1.5 + * GMyth Library
1.6 + *
1.7 + * @file gmyth/gmyth_livetv.h
1.8 + *
1.9 + * @brief <p> GMythLiveTV starts a remote TV session with the MythTV backend.
1.10 + *
1.11 + * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
1.12 + * @author Rosfran Lins Borges <rosfran.borges@indt.org.br>
1.13 + *
1.14 + *//*
1.15 + *
1.16 + * This program is free software; you can redistribute it and/or modify
1.17 + * it under the terms of the GNU Lesser General Public License as published by
1.18 + * the Free Software Foundation; either version 2 of the License, or
1.19 + * (at your option) any later version.
1.20 + *
1.21 + * This program is distributed in the hope that it will be useful,
1.22 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.23 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.24 + * GNU General Public License for more details.
1.25 + *
1.26 + * You should have received a copy of the GNU Lesser General Public License
1.27 + * along with this program; if not, write to the Free Software
1.28 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1.29 + */
1.30 +
1.31 +#ifndef GMYTH_LIVETV_H_
1.32 +#define GMYTH_LIVETV_H_
1.33 +
1.34 +#include <glib.h>
1.35 +#include <glib-object.h>
1.36 +
1.37 +#include "gmyth_recorder.h"
1.38 +#include "gmyth_tvchain.h"
1.39 +#include "gmyth_monitor_handler.h"
1.40 +#include "gmyth_file_transfer.h"
1.41 +#include "gmyth_programinfo.h"
1.42 +#include "gmyth_backendinfo.h"
1.43 +
1.44 +G_BEGIN_DECLS
1.45 +
1.46 +#define GMYTH_LIVETV_TYPE (gmyth_livetv_get_type ())
1.47 +#define GMYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_LIVETV_TYPE, GMythLiveTV))
1.48 +#define GMYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_LIVETV_TYPE, GMythLiveTVClass))
1.49 +#define IS_GMYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_LIVETV_TYPE))
1.50 +#define IS_GMYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_LIVETV_TYPE))
1.51 +#define GMYTH_LIVETV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_LIVETV_TYPE, GMythLiveTVClass))
1.52 +
1.53 +typedef struct _GMythLiveTV GMythLiveTV;
1.54 +typedef struct _GMythLiveTVClass GMythLiveTVClass;
1.55 +
1.56 +struct _GMythLiveTVClass
1.57 +{
1.58 + GObjectClass parent_class;
1.59 +
1.60 + /* callbacks */
1.61 +};
1.62 +
1.63 +struct _GMythLiveTV
1.64 +{
1.65 + GObject parent;
1.66 +
1.67 + GString *local_hostname;
1.68 +
1.69 + GMythBackendInfo *backend_info;
1.70 +
1.71 + GMythRecorder *recorder;
1.72 + GMythTVChain *tvchain;
1.73 + GMythProgramInfo *proginfo;
1.74 +
1.75 + GMythFileTransfer *file_transfer;
1.76 +
1.77 + GMythMonitorHandler *monitor;
1.78 + GMythURI *uri;
1.79 +
1.80 + gboolean is_livetv;
1.81 + gboolean setup_done;
1.82 +
1.83 +};
1.84 +
1.85 +GType gmyth_livetv_get_type (void);
1.86 +
1.87 +GMythLiveTV* gmyth_livetv_new ();
1.88 +
1.89 +void gmyth_livetv_start_playing (GMythLiveTV *livetv);
1.90 +void gmyth_livetv_stop_playing (GMythLiveTV *livetv);
1.91 +
1.92 +gboolean gmyth_livetv_setup (GMythLiveTV *livetv, GMythBackendInfo *backend_info);
1.93 +gboolean gmyth_livetv_channel_setup ( GMythLiveTV *livetv, gint channel, GMythBackendInfo *backend_info );
1.94 +gboolean gmyth_livetv_channel_name_setup ( GMythLiveTV *livetv, gchar* channel, GMythBackendInfo *backend_info );
1.95 +gboolean gmyth_livetv_next_program_chain ( GMythLiveTV *livetv );
1.96 +
1.97 +GMythFileTransfer *gmyth_livetv_create_file_transfer( GMythLiveTV *livetv );
1.98 +
1.99 +gboolean gmyth_livetv_monitor_handler_start( GMythLiveTV *livetv );
1.100 +void gmyth_livetv_monitor_handler_stop( GMythLiveTV *livetv );
1.101 +
1.102 +G_END_DECLS
1.103 +
1.104 +#endif /*GMYTH_LIVETV_H_*/