# HG changeset patch # User melunko # Date 1164722480 0 # Node ID d183df7d845947f411014d04b14eff7a4d979fa2 # Parent a7237ce91c3bfd1ca92fd9e9a816b054ce2361a7 [svn r129] Added gmyth_programinfo.c/h diff -r a7237ce91c3b -r d183df7d8459 gmyth/src/gmyth_programinfo.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gmyth/src/gmyth_programinfo.c Tue Nov 28 14:01:20 2006 +0000 @@ -0,0 +1,59 @@ + +#include "gmyth_programinfo.h" + +GMythStringList* +gmyth_program_info_to_string_list (GMythProgramInfo *prog, GMythStringList *slist) +{ + g_return_val_if_fail (prog != NULL, NULL); + g_return_val_if_fail (slist != NULL, NULL); + + gmyth_string_list_append_string (slist, prog->title); + gmyth_string_list_append_string (slist, prog->subtitle); + gmyth_string_list_append_string (slist, prog->description); + gmyth_string_list_append_string (slist, prog->category); + gmyth_string_list_append_string (slist, prog->chanid); + gmyth_string_list_append_string (slist, prog->chanstr); + gmyth_string_list_append_string (slist, prog->chansign); + gmyth_string_list_append_string (slist, prog->channame); + gmyth_string_list_append_string (slist, prog->pathname); + gmyth_string_list_append_int64 (slist, prog->filesize); + + gmyth_string_list_append_int (slist, 0); //DATETIME_TO_LIST(startts) + gmyth_string_list_append_int (slist, 0); //DATETIME_TO_LIST(endts) + gmyth_string_list_append_int (slist, prog->duplicate); + gmyth_string_list_append_int (slist, prog->shareable); + gmyth_string_list_append_int (slist, prog->findid); + gmyth_string_list_append_string (slist, prog->hostname); + gmyth_string_list_append_int (slist, prog->sourceid); + gmyth_string_list_append_int (slist, prog->cardid); + gmyth_string_list_append_int (slist, prog->inputid); + gmyth_string_list_append_int (slist, prog->recpriority); + gmyth_string_list_append_int (slist, 0 /*prog->recstatus*/); + gmyth_string_list_append_int (slist, prog->recordid); + gmyth_string_list_append_int (slist, 0 /*prog->rectype*/); + gmyth_string_list_append_int (slist, 0 /*prog->dupin*/); + gmyth_string_list_append_int (slist, 0 /*prog->dupmethod*/); + gmyth_string_list_append_int (slist, 0); //DATETIME_TO_LIST(recstartts) + gmyth_string_list_append_int (slist, 0); //DATETIME_TO_LIST(recendts) + gmyth_string_list_append_int (slist, prog->repeat); + gmyth_string_list_append_int (slist, prog->programflags); + gmyth_string_list_append_char_array (slist, "Default"); //prog->(recgroup != "") ? recgroup : "Default") + gmyth_string_list_append_int (slist, prog->chancommfree); + gmyth_string_list_append_string (slist, prog->chanOutputFilters); + gmyth_string_list_append_string (slist, prog->seriesid); + gmyth_string_list_append_string (slist, prog->programid); + gmyth_string_list_append_int (slist, 0); //DATETIME_TO_LIST(lastmodified) + gmyth_string_list_append_int (slist, 0); //FLOAT_TO_LIST(stars) + gmyth_string_list_append_int (slist, 0); //DATETIME_TO_LIST(QDateTime(originalAirDate)) + gmyth_string_list_append_int (slist, prog->hasAirDate); + gmyth_string_list_append_char_array (slist, "Default"); //prog->(playgroup != "") ? playgroup : "Default") + gmyth_string_list_append_int (slist, prog->recpriority2); + + return slist; +} + +GMythProgramInfo* +gmyth_program_info_from_string_list () +{ + return NULL; +} diff -r a7237ce91c3b -r d183df7d8459 gmyth/src/gmyth_programinfo.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gmyth/src/gmyth_programinfo.h Tue Nov 28 14:01:20 2006 +0000 @@ -0,0 +1,11 @@ + +#ifndef _GMYTH_PROGRAMINFO_H +#define _GMYTH_PROGRAMINFO_H + +#include "gmyth_stringlist.h" +#include "gmyth_common.h" + +GMythStringList* gmyth_program_info_to_string_list (GMythProgramInfo *prog, GMythStringList *slist); +GMythProgramInfo* gmyth_program_info_from_string_list (); + +#endif