[improvement][settings] only displaying available multi-threaded download clients

This commit is contained in:
Vinícius Moreira
2020-05-28 11:36:54 -03:00
parent c8f1e0b1f0
commit 5340070b3a
12 changed files with 70 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
from abc import ABC, abstractmethod
from typing import Iterable
from typing import Iterable, List
from bauh.api.abstract.handler import ProcessWatcher
@@ -33,3 +33,11 @@ class FileDownloader(ABC):
@abstractmethod
def get_supported_multithreaded_clients(self) -> Iterable[str]:
pass
@abstractmethod
def is_multithreaded_client_available(self, name: str) -> bool:
pass
@abstractmethod
def list_available_multithreaded_clients(self) -> List[str]:
pass