[svn r335] Some fixes to the do_get_file_info.
4 * @file gmyth/gmyth_common.h
6 * @brief <p> This file contains basic common functions for the gmyth library.
8 * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
9 * @author Leonardo Sobral Cunha <leonardo.cunha@indt.org.br>
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU Lesser General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU Lesser General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #ifndef _GMYTH_PROGRAMINFO_H
29 #define _GMYTH_PROGRAMINFO_H
32 #include <glib-object.h>
34 #include "gmyth_stringlist.h"
38 #define GMYTH_PROGRAM_INFO_TYPE (gmyth_program_info_get_type ())
39 #define GMYTH_PROGRAM_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_PROGRAM_INFO_TYPE, GMythProgramInfo))
40 #define GMYTH_PROGRAM_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_PROGRAM_INFO_TYPE, GMythProgramInfoClass))
41 #define IS_GMYTH_PROGRAM_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_PROGRAM_INFO_TYPE))
42 #define IS_GMYTH_PROGRAM_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_PROGRAM_INFO_TYPE))
43 #define GMYTH_PROGRAM_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_PROGRAM_INFO_TYPE, GMythProgramInfoClass))
45 typedef struct _GMythProgramInfo GMythProgramInfo;
46 typedef struct _GMythProgramInfoClass GMythProgramInfoClass;
48 struct _GMythProgramInfoClass
50 GObjectClass parent_class;
56 * The GMythProgramInfo structure represents a program information
57 * stored in the database. It could be a program from the EPG data,
58 * a program scheduled to be recorded, or a program already recorded.
60 struct _GMythProgramInfo
64 /** The channel unique ID. */
67 /** The program start time. */
69 /** The program end time. */
71 /** The recording schedule start time. */
73 /** The recording schedule end time */
76 /** The program title. */
78 /** The program subtitle. */
80 /** The program description. */
82 /** The program category. */
87 /** The associated channel name. */
90 GString *chanOutputFilters;
93 /** The program unique id. */
99 /** A flag informing if the program has video or not. */
107 GTimeVal* originalAirDate;
108 GTimeVal* lastmodified;
109 GTimeVal* lastInUseTime;
122 /** The backend video source id associated to this program.*/
124 /** the backend input id associated to this program.*/
126 /** The backend card id associated to this program.*/
131 GString * schedulerid;
141 /** The file size of the recorded program.*/
144 /** The file name of the recorded program.*/
148 /* AvailableStatusType availableStatus;*/
152 GType gmyth_program_info_type (void);
154 GMythProgramInfo* gmyth_program_info_new (void);
156 GMythStringList* gmyth_program_info_to_string_list (GMythProgramInfo *prog, GMythStringList *slist);
157 GMythProgramInfo* gmyth_program_info_from_string_list (GMythStringList *slist);
161 #endif /*_GMYTH_PROGRAMINFO_H*/