[svn r41] Changes prior to move some MythTV depedencies to the GMyth library.
1 #ifndef GMYTH_LIVETV_H_
2 #define GMYTH_LIVETV_H_
4 #include <glib-object.h>
6 #include <gmyth/gmyth_remote_encoder.h>
7 #include <gmyth/gmyth_tvchain.h>
8 #include <gmyth/gmyth_common.h>
10 #include "gmyth_file_transfer.h"
14 #define GMYTH_LIVETV_TYPE (gmyth_livetv_get_type ())
15 #define GMYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_LIVETV_TYPE, GMythLiveTV))
16 #define GMYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_LIVETV_TYPE, GMythLiveTVClass))
17 #define IS_GMYTH_LIVETV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_LIVETV_TYPE))
18 #define IS_GMYTH_LIVETV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_LIVETV_TYPE))
19 #define GMYTH_LIVETV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_LIVETV_TYPE, GMythLiveTVClass))
21 typedef struct _GMythLiveTV GMythLiveTV;
22 typedef struct _GMythLiveTVClass GMythLiveTVClass;
24 struct _GMythLiveTVClass
26 GObjectClass parent_class;
35 // Backend connection related variables
36 GString *backend_hostname;
38 GString *local_hostname;
40 GMythRemoteEncoder *remote_encoder;
41 GMythTVChain *tvchain;
42 GMythProgramInfo *proginfo;
48 GType gmyth_livetv_get_type (void);
50 GMythLiveTV* gmyth_livetv_new ();
52 void gmyth_livetv_start_playing (GMythLiveTV *livetv);
53 void gmyth_livetv_stop_playing (GMythLiveTV *livetv);
55 gboolean gmyth_livetv_setup (GMythLiveTV *livetv);
59 #endif /*GMYTH_LIVETV_H_*/