Ticket #1728: 04_activate_slave_control.diff

File 04_activate_slave_control.diff, 3.1 KB (added by Janne <janne-mythtv@…>, 14 years ago)
  • mythtv/programs/mythbackend/mainserver.cpp

    === mythtv/programs/mythbackend/mainserver.cpp
    ==================================================================
     
    27672767        info->ToStringList(retlist);
    27682768        delete info;
    27692769    }
     2770    else if (command == "START_EIT_SCAN")
     2771    {
     2772        retlist << QString::number((int)enc->StartEITScan(commands[2]));
     2773    }
    27702774
    27712775    SendResponse(pbssock, retlist);
    27722776}
  • mythtv/programs/mythbackend/playbacksock.cpp

    === mythtv/programs/mythbackend/playbacksock.cpp
    ==================================================================
     
    285285    int ret = strlist[0].toInt();
    286286    return ret;
    287287}
     288
     289bool PlaybackSock::StartEITScan(int capturecardnum, QString chanid)
     290{
     291    QStringList strlist = QString("QUERY_REMOTEENCODER %1").arg(capturecardnum);
     292    strlist << "START_EIT_SCAN";
     293    strlist << chanid;
     294
     295    SendReceiveStringList(strlist);
     296
     297    bool ret = strlist[0].toInt();
     298    return ret;
     299}
     300
  • mythtv/programs/mythbackend/playbacksock.h

    === mythtv/programs/mythbackend/playbacksock.h
    ==================================================================
     
    6060                                 const ProgramInfo *pginfo);
    6161    void RecordPending(int capturecardnum, const ProgramInfo *pginfo, int secsleft);
    6262    int SetSignalMonitoringRate(int capturecardnum, int rate, int notifyFrontend);
     63    bool StartEITScan(int capturecardnum, QString chanid);
    6364
    6465  private:
    6566    bool SendReceiveStringList(QStringList &strlist);
  • mythtv/programs/mythbackend/eitactivescanner.cpp

    === mythtv/programs/mythbackend/eitactivescanner.cpp
    ==================================================================
     
    5656            rec->SetEITCache(eitCache);
    5757        }
    5858    }
    59 //    if (ismaster)
     59    if (ismaster)
    6060        StartActiveScan();
    6161
    6262
  • mythplugins/mythweb/includes/mythbackend.php

    === mythplugins/mythweb/includes/mythbackend.php
    ==================================================================
     
    1717
    1818// MYTH_PROTO_VERSION is defined in libmyth in mythtv/libs/libmyth/mythcontext.h
    1919// and should be the current MythTV protocol version.
    20     define('MYTH_PROTO_VERSION', 29);
     20    define('MYTH_PROTO_VERSION', 30);
    2121
    2222// NUMPROGRAMLINES is defined in mythtv/libs/libmythtv/programinfo.h and is
    2323// the number of items in a ProgramInfo QStringList group used by
  • mythtv/libs/libmyth/mythcontext.h

    === mythtv/libs/libmyth/mythcontext.h
    ==================================================================
     
    229229 *   You must also update this value in
    230230 *   mythplugins/mythweb/includes/mythbackend.php
    231231 */
    232 #define MYTH_PROTO_VERSION "29"
     232#define MYTH_PROTO_VERSION "30"
    233233
    234234/** \class MythContext
    235235 *  \brief This class contains the runtime context for MythTV.