gmyth/src/gmyth_programinfo.c
author leo_sobral
Fri Dec 08 23:16:15 2006 +0000 (2006-12-08)
branchtrunk
changeset 213 631f2cf13501
parent 128 d183df7d8459
child 291 73fa3a0f2f08
permissions -rw-r--r--
[svn r214] HAVE_CONFIG added
     1 /**
     2  * GMyth Library
     3  *
     4  * @file gmyth/gmyth_programinfo.c
     5  * 
     6  * @brief <p> GMythFileTransfer deals with the file streaming media remote/local
     7  * transfering to the MythTV frontend.
     8  *
     9  * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
    10  * @author Leonardo Sobral Cunha <leonardo.cunha@indt.org.br>
    11  *
    12  *//*
    13  * 
    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.
    18  *
    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.
    23  *
    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
    27  *
    28  */
    29  
    30 #ifdef HAVE_CONFIG_H
    31 #include "config.h"
    32 #endif
    33 
    34 #include "gmyth_programinfo.h"
    35 
    36 GMythStringList*
    37 gmyth_program_info_to_string_list (GMythProgramInfo *prog, GMythStringList *slist)
    38 {
    39     g_return_val_if_fail (prog != NULL, NULL);
    40     g_return_val_if_fail (slist != NULL, NULL);
    41 
    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);
    52 
    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);
    83    
    84     return slist;
    85 }
    86 
    87 GMythProgramInfo*
    88 gmyth_program_info_from_string_list ()
    89 {
    90     return NULL;
    91 }