31 lines
905 B
Python
31 lines
905 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from typing import Self, Any, Callable, Optional, Sequence
|
|
from abc import ABC, abstractmethod
|
|
|
|
class QueusManagerInterface(ABC):
|
|
|
|
@abstractmethod
|
|
def update(self:Self) -> None:pass
|
|
|
|
@abstractmethod
|
|
def reset(self:Self) -> None:pass
|
|
|
|
@abstractmethod
|
|
def close(self:Self) -> None:pass
|
|
|
|
@abstractmethod
|
|
def create(self:Self, inputs:Any|None, overwrite:bool = False) -> None:pass
|
|
|
|
@abstractmethod
|
|
def add(self:Self, key:str, callback:Callable[[Callable[[], None]], None], *arguments:list[Any|None]) -> int|None:pass
|
|
|
|
@abstractmethod
|
|
def next(self:Self) -> None:pass
|
|
|
|
@abstractmethod
|
|
def cancel(self:Self, keys:Optional[str|Sequence[str]] = False, _is:Optional[int|Sequence[int]] = None) -> bool:pass
|
|
|
|
@abstractmethod
|
|
def remove(self:Self, keys:Optional[str|Sequence[str]] = None) -> bool:pass |