Ticket #4063: mythtv-perl_bindings-recstatustype_variables.patch

File mythtv-perl_bindings-recstatustype_variables.patch, 4.3 KB (added by sphery <mtdean@…>, 17 years ago)
  • bindings/perl/MythTV.pm

     
    5555    our $searchtype_people  = 4;
    5656    our $searchtype_manual  = 5;
    5757
     58# And the recstatus types
     59    our $recstatustype_tunerbusy         = '-8';
     60    our $recstatustype_lowdiskspace      = '-7';
     61    our $recstatustype_cancelled         = '-6';
     62    our $recstatustype_deleted           = '-5';
     63    our $recstatustype_aborted           = '-4';
     64    our $recstatustype_recorded          = '-3';
     65    our $recstatustype_recording         = '-2';
     66    our $recstatustype_willrecord        = '-1';
     67    our $recstatustype_unknown           =   0 ;
     68    our $recstatustype_dontrecord        =   1 ;
     69    our $recstatustype_previousrecording =   2 ;
     70    our $recstatustype_currentrecording  =   3 ;
     71    our $recstatustype_earliershowing    =   4 ;
     72    our $recstatustype_toomanyrecordings =   5 ;
     73    our $recstatustype_notlisted         =   6 ;
     74    our $recstatustype_conflict          =   7 ;
     75    our $recstatustype_latershowing      =   8 ;
     76    our $recstatustype_repeat            =   9 ;
     77    our $recstatustype_inactive          =  10 ;
     78    our $recstatustype_neverrecord       =  11 ;
     79
    5880# The character string used by the backend to separate records
    5981    our $BACKEND_SEP    = '[]:[]';
    6082    our $BACKEND_SEP_rx = qr/\[\]:\[\]/;
     
    7092
    7193# Reasons a recording wouldn't be happening (from libs/libmythtv/programinfo.h)
    7294    our %RecStatus_Types = (
    73                             '-8' => 'TunerBusy',
    74                             '-7' => 'LowDiskSpace',
    75                             '-6' => 'Cancelled',
    76                             '-5' => 'Deleted',
    77                             '-4' => 'Aborted',
    78                             '-3' => 'Recorded',
    79                             '-2' => 'Recording',
    80                             '-1' => 'WillRecord',
    81                               0  => 'Unknown',
    82                               1  => 'DontRecord',
    83                               2  => 'PreviousRecording',
    84                               3  => 'CurrentRecording',
    85                               4  => 'EarlierShowing',
    86                               5  => 'TooManyRecordings',
    87                               6  => 'NotListed',
    88                               7  => 'Conflict',
    89                               8  => 'LaterShowing',
    90                               9  => 'Repeat',
    91                              10  => 'Inactive',
    92                              11  => 'NeverRecord'
     95                            $recstatustype_tunerbusy    => 'TunerBusy',
     96                            $recstatustype_lowdiskspace => 'LowDiskSpace',
     97                            $recstatustype_cancelled    => 'Cancelled',
     98                            $recstatustype_deleted      => 'Deleted',
     99                            $recstatustype_aborted      => 'Aborted',
     100                            $recstatustype_recorded     => 'Recorded',
     101                            $recstatustype_recording    => 'Recording',
     102                            $recstatustype_willrecord   => 'WillRecord',
     103                            $recstatustype_unknown      => 'Unknown',
     104                            $recstatustype_dontrecord   => 'DontRecord',
     105                            $recstatustype_previousrecording
     106                                                        => 'PreviousRecording',
     107                            $recstatustype_currentrecording
     108                                                        => 'CurrentRecording',
     109                            $recstatustype_earliershowing
     110                                                        => 'EarlierShowing',
     111                            $recstatustype_toomanyrecordings
     112                                                        => 'TooManyRecordings',
     113                            $recstatustype_notlisted    => 'NotListed',
     114                            $recstatustype_conflict     => 'Conflict',
     115                            $recstatustype_latershowing => 'LaterShowing',
     116                            $recstatustype_repeat       => 'Repeat',
     117                            $recstatustype_inactive     => 'Inactive',
     118                            $recstatustype_neverrecord  => 'NeverRecord'
    93119                            );
    94120
    95121# The most recent MythTV object created