4 * @file gmyth/gmyth_programinfo.c
6 * @brief <p> GMythFileTransfer deals with the file streaming media remote/local
7 * transfering to the MythTV frontend.
9 * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
10 * @author Leonardo Sobral Cunha <leonardo.cunha@indt.org.br>
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU Lesser General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
34 #include "gmyth_programinfo.h"
37 gmyth_program_info_to_string_list (GMythProgramInfo *prog, GMythStringList *slist)
39 g_return_val_if_fail (prog != NULL, NULL);
40 g_return_val_if_fail (slist != NULL, NULL);
42 gmyth_string_list_append_string (slist, prog->title);
43 gmyth_string_list_append_string (slist, prog->subtitle);
44 gmyth_string_list_append_string (slist, prog->description);
45 gmyth_string_list_append_string (slist, prog->category);
46 gmyth_string_list_append_string (slist, prog->chanid);
47 gmyth_string_list_append_string (slist, prog->chanstr);
48 gmyth_string_list_append_string (slist, prog->chansign);
49 gmyth_string_list_append_string (slist, prog->channame);
50 gmyth_string_list_append_string (slist, prog->pathname);
51 gmyth_string_list_append_int64 (slist, prog->filesize);
53 gmyth_string_list_append_int (slist, 0); //DATETIME_TO_LIST(startts)
54 gmyth_string_list_append_int (slist, 0); //DATETIME_TO_LIST(endts)
55 gmyth_string_list_append_int (slist, prog->duplicate);
56 gmyth_string_list_append_int (slist, prog->shareable);
57 gmyth_string_list_append_int (slist, prog->findid);
58 gmyth_string_list_append_string (slist, prog->hostname);
59 gmyth_string_list_append_int (slist, prog->sourceid);
60 gmyth_string_list_append_int (slist, prog->cardid);
61 gmyth_string_list_append_int (slist, prog->inputid);
62 gmyth_string_list_append_int (slist, prog->recpriority);
63 gmyth_string_list_append_int (slist, 0 /*prog->recstatus*/);
64 gmyth_string_list_append_int (slist, prog->recordid);
65 gmyth_string_list_append_int (slist, 0 /*prog->rectype*/);
66 gmyth_string_list_append_int (slist, 0 /*prog->dupin*/);
67 gmyth_string_list_append_int (slist, 0 /*prog->dupmethod*/);
68 gmyth_string_list_append_int (slist, 0); //DATETIME_TO_LIST(recstartts)
69 gmyth_string_list_append_int (slist, 0); //DATETIME_TO_LIST(recendts)
70 gmyth_string_list_append_int (slist, prog->repeat);
71 gmyth_string_list_append_int (slist, prog->programflags);
72 gmyth_string_list_append_char_array (slist, "Default"); //prog->(recgroup != "") ? recgroup : "Default")
73 gmyth_string_list_append_int (slist, prog->chancommfree);
74 gmyth_string_list_append_string (slist, prog->chanOutputFilters);
75 gmyth_string_list_append_string (slist, prog->seriesid);
76 gmyth_string_list_append_string (slist, prog->programid);
77 gmyth_string_list_append_int (slist, 0); //DATETIME_TO_LIST(lastmodified)
78 gmyth_string_list_append_int (slist, 0); //FLOAT_TO_LIST(stars)
79 gmyth_string_list_append_int (slist, 0); //DATETIME_TO_LIST(QDateTime(originalAirDate))
80 gmyth_string_list_append_int (slist, prog->hasAirDate);
81 gmyth_string_list_append_char_array (slist, "Default"); //prog->(playgroup != "") ? playgroup : "Default")
82 gmyth_string_list_append_int (slist, prog->recpriority2);
88 gmyth_program_info_from_string_list ()