Ticket #6290: 01-mythtv-setup-backendsettings.patch
| File 01-mythtv-setup-backendsettings.patch, 1.8 KB (added by , 17 years ago) |
|---|
-
mythtv/programs/mythtv-setup/backendsettings.cpp
379 379 return gc; 380 380 }; 381 381 382 static 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 392 static 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 382 402 static GlobalSpinBox *idleTimeoutSecs() 383 403 { 384 404 GlobalSpinBox *gc = new GlobalSpinBox("idleTimeoutSecs", 0, 1200, 5); … … 777 797 group4->addChild(slaveBackend); 778 798 addChild(group4); 779 799 800 VerticalConfigurationGroup* backendControl = new VerticalConfigurationGroup(); 801 backendControl->setLabel(QObject::tr("Backend Control")); 802 backendControl->addChild(BackendStopCommand()); 803 backendControl->addChild(BackendStartCommand()); 804 addChild(backendControl); 805 780 806 VerticalConfigurationGroup* group5 = new VerticalConfigurationGroup(false); 781 807 group5->setLabel(QObject::tr("Job Queue (Backend-Specific)")); 782 808 group5->addChild(JobQueueMaxSimultaneousJobs());
