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

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

Refresh against 20301

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

     
    391391    return gc;
    392392};
    393393
     394static GlobalLineEdit *BackendStopCommand()
     395{
     396    GlobalLineEdit *gc = new GlobalLineEdit("BackendStopCommand");
     397    gc->setLabel(QObject::tr("Backend Stop Command"));
     398    gc->setValue("killall mythbackend");
     399    gc->setHelpText(QObject::tr("The command used to stop the backend when running on "
     400                    "the master backend server\n(eg. sudo /etc/init.d/mythtv-backend stop)."));
     401    return gc;
     402};
     403
     404static GlobalLineEdit *BackendStartCommand()
     405{
     406    GlobalLineEdit *gc = new GlobalLineEdit("BackendStartCommand");
     407    gc->setLabel(QObject::tr("Backend Start Command"));
     408    gc->setValue("mythbackend");
     409    gc->setHelpText(QObject::tr("The command used to start the backend when running on "
     410                    "the master backend server\n(eg. sudo /etc/init.d/mythtv-backend start)."));
     411    return gc;
     412};
     413
    394414static GlobalSpinBox *idleTimeoutSecs()
    395415{
    396416    GlobalSpinBox *gc = new GlobalSpinBox("idleTimeoutSecs", 0, 1200, 5);
     
    790810    group4->addChild(slaveBackend);
    791811    addChild(group4);
    792812
     813    VerticalConfigurationGroup* backendControl = new VerticalConfigurationGroup();
     814    backendControl->setLabel(QObject::tr("Backend Control"));
     815    backendControl->addChild(BackendStopCommand());
     816    backendControl->addChild(BackendStartCommand());
     817    addChild(backendControl);
     818   
    793819    VerticalConfigurationGroup* group5 = new VerticalConfigurationGroup(false);
    794820    group5->setLabel(QObject::tr("Job Queue (Backend-Specific)"));
    795821    group5->addChild(JobQueueMaxSimultaneousJobs());