This commit is contained in:
Vinícius Moreira
2019-12-09 19:30:27 -03:00
parent 6bd27b565e
commit b9ed2cf4c1
16 changed files with 215 additions and 12 deletions

View File

@@ -37,11 +37,12 @@ class SoftwareManager(ABC):
self.context = context
@abstractmethod
def search(self, words: str, disk_loader: DiskCacheLoader, limit: int) -> SearchResult:
def search(self, words: str, disk_loader: DiskCacheLoader, limit: int, is_url: bool) -> SearchResult:
"""
:param words: the words typed by the user
:param disk_loader: a running disk loader thread that loads package data from the disk asynchronously
:param limit: the max number of packages to be retrieved. <= 1 should retrieve everything
:param is_url: if "words" is a URL
:return:
"""
pass