openwebrx-clone/owrx/controllers/settings/backgrounddecoding.py

26 lines
916 B
Python
Raw Permalink Normal View History

from owrx.controllers.settings import SettingsFormController
from owrx.form.section import Section
2021-04-29 13:17:21 +00:00
from owrx.form.input import CheckboxInput, ServicesCheckboxInput
from owrx.breadcrumb import Breadcrumb, BreadcrumbItem
from owrx.controllers.settings import SettingsBreadcrumb
2021-02-15 14:56:17 +00:00
class BackgroundDecodingController(SettingsFormController):
def getTitle(self):
return "Background decoding"
def get_breadcrumb(self) -> Breadcrumb:
return SettingsBreadcrumb().append(BreadcrumbItem("Background decoding", "settings/backgrounddecoding"))
2021-02-15 14:56:17 +00:00
def getSections(self):
return [
Section(
"Background decoding",
CheckboxInput(
"services_enabled",
"Enable background decoding services",
2021-02-15 14:56:17 +00:00
),
ServicesCheckboxInput("services_decoders", "Enabled services"),
),
]