1 #ifndef __MMYTH_EPG_GRID_WIDGET_H__
2 #define __MMYTH_EPG_GRID_WIDGET_H__
4 #include <glib-object.h>
6 #include <gtk/gtkvbox.h>
7 #include <gtk/gtkeventbox.h>
9 #include <gmyth/gmyth_common.h>
10 #include <gmyth/gmyth_backendinfo.h>
11 #define MAX_DISPLAY_CHANS 4
14 #define MMYTH_EPG_GRID_WIDGET_TYPE (mmyth_epg_grid_widget_get_type ())
15 #define MMYTH_EPG_GRID_WIDGET(obj) (GTK_CHECK_CAST ((obj), MMYTH_EPG_GRID_WIDGET_TYPE, MMythEpgGridWidget))
16 #define MMYTH_EPG_GRID_WIDGET_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), MMYTH_EPG_GRID_WIDGET_TYPE, MMythEpgGridWidgetClass))
17 #define IS_MMYTH_EPG_GRID_WIDGET(obj) (GTK_CHECK_TYPE ((obj), MMYTH_EPG_GRID_WIDGET_TYPE))
18 #define IS_MMYTH_EPG_GRID_WIDGET_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), MMYTH_EPG_GRID_WIDGET_TYPE))
19 #define MMYTH_EPG_GRID_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MMYTH_EPG_GRID_WIDGET_TYPE, MMythEpgGridWidgetClass))
20 #define MMYTH_EPG_GRID_WIDGET_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), MMYTH_EPG_GRID_WIDGET_TYPE, MMythEpgGridWidgetPrivate))
21 typedef struct _MMythEpgGridWidget MMythEpgGridWidget;
22 typedef struct _MMythEpgGridWidgetClass MMythEpgGridWidgetClass;
23 typedef struct _MMythEpgGridWidgetPrivate MMythEpgGridWidgetPrivate;
25 struct _MMythEpgGridWidgetClass {
26 GtkEventBoxClass parent_class;
36 struct _MMythEpgGridWidget {
37 GtkEventBox event_box;
40 * Selected Widgets Logic
43 * List os Service Model in the current view the data of this list are
44 * GList for the programs of each service
46 GList *epg_view_model;
49 * Selected Schedule Item
51 GList *selected_grid_item;
56 GType mmyth_epg_grid_widget_get_type(void);
57 GtkWidget *mmyth_epg_grid_widget_new(void);
59 * DVBHScheduleEvent* mmyth_epg_grid_get_selected_schedule
60 * (MMythEpgGridWidget * object);
62 void mmyth_epg_grid_widget_update_service(MMythEpgGridWidget *
66 gboolean mmyth_epg_grid_widget_key_press(MMythEpgGridWidget *
67 object, GtkWidget * widget,
70 typedef struct _EpgGridItem EpgGridItem;
73 * FIXME: auxiliary struct
77 GMythProgramInfo *proginfo;
81 * for callback purposes
83 MMythEpgGridWidget *object;
87 #endif /* __MMYTH_EPG_GRID_WIDGET_H__ */