Ticket #6290: 01-mythtv-setup-backendsettings.patch

File 01-mythtv-setup-backendsettings.patch, 1.8 KB (added by Matthew Wire <devel@…>, 17 years ago)

Settings gui

  • mythtv/programs/mythtv-setup/backendsettings.cpp

     
    379379    return gc;
    380380};
    381381
     382static GlobalLineEdit *BackendStopCommand()
     383{
     384    GlobalLineEdit *gc = new GlobalLineEdit("BackendStopCommand");
     385    gc->setLabel(QObject::tr("Backend Stop Command"));
     386    gc->setValue("killall mythbackend");
     387    gc->setHelpText(QObject::tr("The command used to stop the backend when running on "
     388                    "the master backend server\n(eg. sudo /etc/init.d/mythtv-backend stop)."));
     389    return gc;
     390};
     391
     392static GlobalLineEdit *BackendStartCommand()
     393{
     394    GlobalLineEdit *gc = new GlobalLineEdit("BackendStartCommand");
     395    gc->setLabel(QObject::tr("Backend Start Command"));
     396    gc->setValue("mythbackend");
     397    gc->setHelpText(QObject::tr("The command used to start the backend when running on "
     398                    "the master backend server\n(eg. sudo /etc/init.d/mythtv-backend start)."));
     399    return gc;
     400};
     401
    382402static GlobalSpinBox *idleTimeoutSecs()
    383403{
    384404    GlobalSpinBox *gc = new GlobalSpinBox("idleTimeoutSecs", 0, 1200, 5);
     
    777797    group4->addChild(slaveBackend);
    778798    addChild(group4);
    779799
     800    VerticalConfigurationGroup* backendControl = new VerticalConfigurationGroup();
     801    backendControl->setLabel(QObject::tr("Backend Control"));
     802    backendControl->addChild(BackendStopCommand());
     803    backendControl->addChild(BackendStartCommand());
     804    addChild(backendControl);
     805   
    780806    VerticalConfigurationGroup* group5 = new VerticalConfigurationGroup(false);
    781807    group5->setLabel(QObject::tr("Job Queue (Backend-Specific)"));
    782808    group5->addChild(JobQueueMaxSimultaneousJobs());