branches/gmyth-0.1b/src/gmyth_epg.h
author rosfran
Wed Feb 07 18:30:15 2007 +0000 (2007-02-07)
branchtrunk
changeset 331 f32837103d17
permissions -rw-r--r--
[svn r333] Fixed bug on do_get_file_info.
renatofilho@320
     1
/**
renatofilho@320
     2
 * GMyth Library
renatofilho@320
     3
 *
renatofilho@320
     4
 * @file gmyth/gmyth_epg.h
renatofilho@320
     5
 * 
renatofilho@320
     6
 * @brief <p> GMythEPG class provides access to the program and channel data
renatofilho@320
     7
 * from the Electronic Program Guide (EPG) of the Mythtv backend.
renatofilho@320
     8
 *
renatofilho@320
     9
 * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
renatofilho@320
    10
 * @author Leonardo Sobral Cunha <leonardo.cunha@indt.org.br>
renatofilho@320
    11
 *
renatofilho@320
    12
 *//*
renatofilho@320
    13
 * 
renatofilho@320
    14
 * This program is free software; you can redistribute it and/or modify
renatofilho@320
    15
 * it under the terms of the GNU Lesser General Public License as published by
renatofilho@320
    16
 * the Free Software Foundation; either version 2 of the License, or
renatofilho@320
    17
 * (at your option) any later version.
renatofilho@320
    18
 *
renatofilho@320
    19
 * This program is distributed in the hope that it will be useful,
renatofilho@320
    20
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
renatofilho@320
    21
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
renatofilho@320
    22
 * GNU General Public License for more details.
renatofilho@320
    23
 *
renatofilho@320
    24
 * You should have received a copy of the GNU Lesser General Public License
renatofilho@320
    25
 * along with this program; if not, write to the Free Software
renatofilho@320
    26
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
renatofilho@320
    27
 */
renatofilho@320
    28
renatofilho@320
    29
#ifndef GMYTH_EPG_H_
renatofilho@320
    30
#define GMYTH_EPG_H_
renatofilho@320
    31
renatofilho@320
    32
#include <glib-object.h>
renatofilho@320
    33
renatofilho@320
    34
#include "gmyth_query.h"
renatofilho@320
    35
#include "gmyth_common.h"
renatofilho@320
    36
renatofilho@320
    37
G_BEGIN_DECLS
renatofilho@320
    38
renatofilho@320
    39
#define GMYTH_EPG_TYPE               (gmyth_epg_get_type ())
renatofilho@320
    40
#define GMYTH_EPG(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_EPG_TYPE, GMythEPG))
renatofilho@320
    41
#define GMYTH_EPG_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_EPG_TYPE, GMythEPGClass))
renatofilho@320
    42
#define IS_GMYTH_EPG(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_EPG_TYPE))
renatofilho@320
    43
#define IS_GMYTH_EPG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_EPG_TYPE))
renatofilho@320
    44
#define GMYTH_EPG_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_EPG_TYPE, GMythEPGClass))
renatofilho@320
    45
renatofilho@320
    46
typedef struct _GMythEPG         GMythEPG;
renatofilho@320
    47
typedef struct _GMythEPGClass    GMythEPGClass;
renatofilho@320
    48
renatofilho@320
    49
struct _GMythEPGClass
renatofilho@320
    50
{
renatofilho@320
    51
  GObjectClass parent_class;
renatofilho@320
    52
renatofilho@320
    53
  /* callbacks */
renatofilho@320
    54
  /* no one for now */
renatofilho@320
    55
};
renatofilho@320
    56
renatofilho@320
    57
struct _GMythEPG
renatofilho@320
    58
{
renatofilho@320
    59
    GObject parent;
renatofilho@320
    60
renatofilho@320
    61
	GMythQuery *sqlquery;
renatofilho@320
    62
};
renatofilho@320
    63
renatofilho@320
    64
GType          gmyth_epg_get_type (void);
renatofilho@320
    65
renatofilho@320
    66
GMythEPG* gmyth_epg_new (void);
renatofilho@320
    67
renatofilho@320
    68
gboolean gmyth_epg_connect (GMythEPG *gmyth_epg, GMythBackendInfo *backend_info);
renatofilho@320
    69
gboolean gmyth_epg_disconnect (GMythEPG *gmyth_epg);
renatofilho@320
    70
renatofilho@320
    71
gint gmyth_epg_get_channel_list (GMythEPG *gmyth_epg, GList **glist_ptr);
renatofilho@320
    72
gint gmyth_epg_get_program_list (GMythEPG *gmyth_epg, GList **proglist,
renatofilho@320
    73
		const gint chanNum, GTimeVal *starttime, GTimeVal *endtime);
renatofilho@320
    74
renatofilho@320
    75
#endif /*GMYTH_EPG_H_*/