explicit typing of the source event interface
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import threading
|
||||
from owrx.source import SdrSource
|
||||
from owrx.source import SdrSource, SdrSourceEventClient
|
||||
from owrx.sdr import SdrService
|
||||
from owrx.bands import Bandplan
|
||||
from csdr.csdr import dsp, output
|
||||
@ -59,7 +59,7 @@ class Js8ServiceOutput(ServiceOutput):
|
||||
return t == "js8_demod"
|
||||
|
||||
|
||||
class ServiceHandler(object):
|
||||
class ServiceHandler(SdrSourceEventClient):
|
||||
def __init__(self, source):
|
||||
self.lock = threading.RLock()
|
||||
self.services = []
|
||||
|
@ -1,5 +1,5 @@
|
||||
from datetime import datetime, timezone, timedelta
|
||||
from owrx.source import SdrSource
|
||||
from owrx.source import SdrSource, SdrSourceEventClient
|
||||
from owrx.config import Config
|
||||
import threading
|
||||
import math
|
||||
@ -204,7 +204,7 @@ class DaylightSchedule(TimerangeSchedule):
|
||||
return entries
|
||||
|
||||
|
||||
class ServiceScheduler(object):
|
||||
class ServiceScheduler(SdrSourceEventClient):
|
||||
def __init__(self, source):
|
||||
self.source = source
|
||||
self.selectionTimer = None
|
||||
|
Reference in New Issue
Block a user