From 49c4088ceb02da735d549014aaa9cba8c729ba54 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 9 Oct 2012 22:09:16 +0200 Subject: modified Api: filter downloads by state --- module/remote/pyload.thrift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/remote/pyload.thrift') diff --git a/module/remote/pyload.thrift b/module/remote/pyload.thrift index 3b0f74cbc..ea2aa7347 100644 --- a/module/remote/pyload.thrift +++ b/module/remote/pyload.thrift @@ -34,7 +34,7 @@ enum DownloadStatus { // Download states, combination of several downloadstatuses // defined in Filedatabase -enum DownloadStates { +enum DownloadState { All, Finished, Unfinished, @@ -406,15 +406,15 @@ service Pyload { void deleteCollLink(1: string url), //////////////////////////// - // File Information retrival + // File Information retrieval //////////////////////////// TreeCollection getAllFiles(), - TreeCollection getAllUnfinishedFiles(), + TreeCollection getFilteredFiles(1: DownloadState state), // pid -1 for root, full=False only delivers first level in tree TreeCollection getFileTree(1: PackageID pid, 2: bool full), - TreeCollection getUnfinishedFileTree(1: PackageID pid, 2: bool full), + TreeCollection getFilteredFileTree(1: PackageID pid, 2: bool full, 3: DownloadState state), // same as above with full=False TreeCollection getPackageContent(1: PackageID pid), -- cgit v1.2.3