renatofilho@320: /** renatofilho@320: * GMyth Library renatofilho@320: * renatofilho@320: * @file gmyth/gmyth_common.h renatofilho@320: * renatofilho@320: * @brief

This file contains basic common functions for the gmyth library. renatofilho@320: * renatofilho@320: * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia. renatofilho@320: * @author Leonardo Sobral Cunha renatofilho@320: * renatofilho@320: *//* renatofilho@320: * renatofilho@320: * This program is free software; you can redistribute it and/or modify renatofilho@320: * it under the terms of the GNU Lesser General Public License as published by renatofilho@320: * the Free Software Foundation; either version 2 of the License, or renatofilho@320: * (at your option) any later version. renatofilho@320: * renatofilho@320: * This program is distributed in the hope that it will be useful, renatofilho@320: * but WITHOUT ANY WARRANTY; without even the implied warranty of renatofilho@320: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the renatofilho@320: * GNU General Public License for more details. renatofilho@320: * renatofilho@320: * You should have received a copy of the GNU Lesser General Public License renatofilho@320: * along with this program; if not, write to the Free Software renatofilho@320: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA renatofilho@320: */ renatofilho@320: renatofilho@320: #ifndef _GMYTH_PROGRAMINFO_H renatofilho@320: #define _GMYTH_PROGRAMINFO_H renatofilho@320: renatofilho@320: #include renatofilho@320: #include renatofilho@320: renatofilho@320: #include "gmyth_stringlist.h" renatofilho@320: renatofilho@320: G_BEGIN_DECLS renatofilho@320: renatofilho@320: #define GMYTH_PROGRAM_INFO_TYPE (gmyth_program_info_get_type ()) renatofilho@320: #define GMYTH_PROGRAM_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_PROGRAM_INFO_TYPE, GMythProgramInfo)) renatofilho@320: #define GMYTH_PROGRAM_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_PROGRAM_INFO_TYPE, GMythProgramInfoClass)) renatofilho@320: #define IS_GMYTH_PROGRAM_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_PROGRAM_INFO_TYPE)) renatofilho@320: #define IS_GMYTH_PROGRAM_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_PROGRAM_INFO_TYPE)) renatofilho@320: #define GMYTH_PROGRAM_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_PROGRAM_INFO_TYPE, GMythProgramInfoClass)) renatofilho@320: renatofilho@320: typedef struct _GMythProgramInfo GMythProgramInfo; renatofilho@320: typedef struct _GMythProgramInfoClass GMythProgramInfoClass; renatofilho@320: renatofilho@320: struct _GMythProgramInfoClass renatofilho@320: { renatofilho@320: GObjectClass parent_class; renatofilho@320: renatofilho@320: /* callbacks */ renatofilho@320: }; renatofilho@320: renatofilho@320: /** renatofilho@320: * The GMythProgramInfo structure represents a program information renatofilho@320: * stored in the database. It could be a program from the EPG data, renatofilho@320: * a program scheduled to be recorded, or a program already recorded. renatofilho@320: */ renatofilho@320: struct _GMythProgramInfo renatofilho@320: { renatofilho@320: GObject parent; renatofilho@320: renatofilho@320: /** The channel unique ID. */ renatofilho@320: GString *chanid; renatofilho@320: renatofilho@320: /** The program start time. */ renatofilho@320: GTimeVal* startts; renatofilho@320: /** The program end time. */ renatofilho@320: GTimeVal* endts; renatofilho@320: /** The recording schedule start time. */ renatofilho@320: GTimeVal* recstartts; renatofilho@320: /** The recording schedule end time */ renatofilho@320: GTimeVal* recendts; renatofilho@320: renatofilho@320: /** The program title. */ renatofilho@320: GString *title; renatofilho@320: /** The program subtitle. */ renatofilho@320: GString *subtitle; renatofilho@320: /** The program description. */ renatofilho@320: GString *description; renatofilho@320: /** The program category. */ renatofilho@320: GString *category; renatofilho@320: renatofilho@320: GString *chanstr; renatofilho@320: GString *chansign; renatofilho@320: /** The associated channel name. */ renatofilho@320: GString *channame; renatofilho@320: gint chancommfree; renatofilho@320: GString *chanOutputFilters; renatofilho@320: renatofilho@320: GString *seriesid; renatofilho@320: /** The program unique id. */ renatofilho@320: GString *programid; renatofilho@320: GString *catType; renatofilho@320: renatofilho@320: GString *sortTitle; renatofilho@320: renatofilho@320: /** A flag informing if the program has video or not. */ renatofilho@320: gboolean isVideo; renatofilho@320: gint lenMins; renatofilho@320: renatofilho@320: GString *year; renatofilho@320: gdouble stars; renatofilho@320: gint repeat; renatofilho@320: renatofilho@320: GTimeVal* originalAirDate; renatofilho@320: GTimeVal* lastmodified; renatofilho@320: GTimeVal* lastInUseTime; renatofilho@320: renatofilho@320: gboolean hasAirDate; renatofilho@320: renatofilho@320: gint spread; renatofilho@320: gint startCol; renatofilho@320: renatofilho@320: gint recpriority2; renatofilho@320: gint reactivate; renatofilho@320: renatofilho@320: gint recordid; renatofilho@320: gint parentid; renatofilho@320: renatofilho@320: /** The backend video source id associated to this program.*/ renatofilho@320: gint sourceid; renatofilho@320: /** the backend input id associated to this program.*/ renatofilho@320: gint inputid; renatofilho@320: /** The backend card id associated to this program.*/ renatofilho@320: gint cardid; renatofilho@320: gboolean shareable; renatofilho@320: gboolean duplicate; renatofilho@320: renatofilho@320: GString * schedulerid; renatofilho@320: gint findid; renatofilho@320: renatofilho@320: gint programflags; renatofilho@320: gint transcoder; renatofilho@320: renatofilho@320: GString *recgroup; renatofilho@320: GString *playgroup; renatofilho@320: gint recpriority; renatofilho@320: renatofilho@320: /** The file size of the recorded program.*/ renatofilho@320: gint64 filesize; renatofilho@320: renatofilho@320: /** The file name of the recorded program.*/ renatofilho@320: GString *pathname; renatofilho@320: GString *hostname; renatofilho@320: renatofilho@320: /* AvailableStatusType availableStatus;*/ renatofilho@320: renatofilho@320: }; renatofilho@320: renatofilho@320: GType gmyth_program_info_type (void); renatofilho@320: renatofilho@320: GMythProgramInfo* gmyth_program_info_new (void); renatofilho@320: renatofilho@320: GMythStringList* gmyth_program_info_to_string_list (GMythProgramInfo *prog, GMythStringList *slist); renatofilho@320: GMythProgramInfo* gmyth_program_info_from_string_list (GMythStringList *slist); renatofilho@320: renatofilho@320: G_END_DECLS renatofilho@320: renatofilho@320: #endif /*_GMYTH_PROGRAMINFO_H*/