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