Ticket #6290: 01-6290-mythtv-setup-backendsettings.2.patch
File 01-6290-mythtv-setup-backendsettings.2.patch, 1.8 KB (added by , 15 years ago) |
---|
-
mythtv/programs/mythtv-setup/backendsettings.cpp
391 391 return gc; 392 392 }; 393 393 394 static 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 404 static 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 394 414 static GlobalSpinBox *idleTimeoutSecs() 395 415 { 396 416 GlobalSpinBox *gc = new GlobalSpinBox("idleTimeoutSecs", 0, 1200, 5); … … 790 810 group4->addChild(slaveBackend); 791 811 addChild(group4); 792 812 813 VerticalConfigurationGroup* backendControl = new VerticalConfigurationGroup(); 814 backendControl->setLabel(QObject::tr("Backend Control")); 815 backendControl->addChild(BackendStopCommand()); 816 backendControl->addChild(BackendStartCommand()); 817 addChild(backendControl); 818 793 819 VerticalConfigurationGroup* group5 = new VerticalConfigurationGroup(false); 794 820 group5->setLabel(QObject::tr("Job Queue (Backend-Specific)")); 795 821 group5->addChild(JobQueueMaxSimultaneousJobs());