maemo-ui-old/src/mmyth_tvplayer.h
branchtrunk
changeset 906 987fafbda04d
parent 905 d2d226b5a4bd
child 907 9fa6794e53fb
     1.1 --- a/maemo-ui-old/src/mmyth_tvplayer.h	Fri Feb 01 14:30:21 2008 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,122 +0,0 @@
     1.4 -/**
     1.5 - * GMyth Library
     1.6 - *
     1.7 - * @file gmyth/mmyth_tvplayer.h
     1.8 - * 
     1.9 - * @brief <p> This component provides playback of the remote A/V using
    1.10 - * GStreamer.
    1.11 - * 
    1.12 - * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
    1.13 - * @author Hallyson Luiz de Morais Melo <hallyson.melo@indt.org.br>
    1.14 - *
    1.15 -    *//*
    1.16 -    * 
    1.17 -    * This program is free software; you can redistribute it and/or modify
    1.18 -    * it under the terms of the GNU Lesser General Public License as published by
    1.19 -    * the Free Software Foundation; either version 2 of the License, or
    1.20 -    * (at your option) any later version.
    1.21 -    *
    1.22 -    * This program is distributed in the hope that it will be useful,
    1.23 -    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.24 -    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.25 -    * GNU General Public License for more details.
    1.26 -    *
    1.27 -    * You should have received a copy of the GNU Lesser General Public License
    1.28 -    * along with this program; if not, write to the Free Software
    1.29 -    * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.30 -    */
    1.31 -
    1.32 -#ifndef MMYTH_TVPLAYER_H_
    1.33 -#define MMYTH_TVPLAYER_H_
    1.34 -
    1.35 -#include <glib-object.h>
    1.36 -#include <gtk/gtk.h>
    1.37 -
    1.38 -/*
    1.39 - * GStreamer includes 
    1.40 - */
    1.41 -#include <gst/gst.h>
    1.42 -#include <gst/interfaces/xoverlay.h>
    1.43 -
    1.44 -#include <gmyth/gmyth_recorder.h>
    1.45 -#include <gmyth/gmyth_tvchain.h>
    1.46 -#include <gmyth/gmyth_common.h>
    1.47 -#include <gmyth/gmyth_livetv.h>
    1.48 -
    1.49 -G_BEGIN_DECLS
    1.50 -#define MMYTH_TVPLAYER_TYPE               (mmyth_tvplayer_get_type ())
    1.51 -#define MMYTH_TVPLAYER(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), MMYTH_TVPLAYER_TYPE, MMythTVPlayer))
    1.52 -#define MMYTH_TVPLAYER_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), MMYTH_TVPLAYER_TYPE, MMythTVPlayerClass))
    1.53 -#define IS_MMYTH_TVPLAYER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), MMYTH_TVPLAYER_TYPE))
    1.54 -#define IS_MMYTH_TVPLAYER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), MMYTH_TVPLAYER_TYPE))
    1.55 -#define MMYTH_TVPLAYER_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), MMYTH_TVPLAYER_TYPE, MMythTVPlayerClass))
    1.56 -typedef struct _MMythTVPlayer MMythTVPlayer;
    1.57 -typedef struct _MMythTVPlayerClass MMythTVPlayerClass;
    1.58 -
    1.59 -struct _MMythTVPlayerClass {
    1.60 -    GObjectClass    parent_class;
    1.61 -
    1.62 -    /*
    1.63 -     * callbacks 
    1.64 -     */
    1.65 -    /*
    1.66 -     * no one for now 
    1.67 -     */
    1.68 -};
    1.69 -
    1.70 -struct _MMythTVPlayer {
    1.71 -    GObject         parent;
    1.72 -
    1.73 -    GstElement     *gst_pipeline;
    1.74 -    GstElement     *gst_source;
    1.75 -    GstElement     *gst_videodec;
    1.76 -    GstElement     *gst_videosink;
    1.77 -    GstElement     *gst_videocolortrs;
    1.78 -    GstElement     *videoqueue1;
    1.79 -    GstElement     *videoqueue2;
    1.80 -    GstElement     *audioqueue1;
    1.81 -    GstElement     *audioqueue2;
    1.82 -
    1.83 -    gulong          expose_handler;
    1.84 -    // GMainLoop *loop;
    1.85 -
    1.86 -    GtkWidget      *videow;
    1.87 -
    1.88 -    /*
    1.89 -     * Backend connection related variables 
    1.90 -     */
    1.91 -    GString        *backend_hostname;
    1.92 -    gint            backend_port;
    1.93 -    GString        *local_hostname;
    1.94 -
    1.95 -    GMythRecorder  *recorder;
    1.96 -    GMythTVChain   *tvchain;
    1.97 -    GMythProgramInfo *proginfo;
    1.98 -    GMythLiveTV    *livetv;
    1.99 -
   1.100 -    GMythBackendInfo *backend_info;
   1.101 -
   1.102 -    gboolean        is_livetv;
   1.103 -};
   1.104 -
   1.105 -
   1.106 -GType           mmyth_tvplayer_get_type(void);
   1.107 -
   1.108 -MMythTVPlayer  *mmyth_tvplayer_new();
   1.109 -gboolean        mmyth_tvplayer_initialize(MMythTVPlayer * tvplayer,
   1.110 -                                          GMythBackendInfo * backend_info);
   1.111 -
   1.112 -void            mmyth_tvplayer_start_playing(MMythTVPlayer * tvplayer);
   1.113 -void            mmyth_tvplayer_stop_playing(MMythTVPlayer * tvplayer);
   1.114 -
   1.115 -gboolean        mmyth_tvplayer_set_widget(MMythTVPlayer * tvplayer,
   1.116 -                                          GtkWidget * videow);
   1.117 -
   1.118 -gboolean        mmyth_tvplayer_is_playing(MMythTVPlayer * tvplayer);
   1.119 -
   1.120 -gboolean        mmyth_tvplayer_record_setup(MMythTVPlayer * tvplayer,
   1.121 -                                            const gchar * filename);
   1.122 -gboolean        mmyth_tvplayer_livetv_setup(MMythTVPlayer * tvplayer);
   1.123 -
   1.124 -G_END_DECLS
   1.125 -#endif                          /* MMYTH_TVPLAYER_H_ */