diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-10-09 22:09:16 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-10-09 22:09:16 +0200 |
commit | 49c4088ceb02da735d549014aaa9cba8c729ba54 (patch) | |
tree | 9ae70f02f4c548b7e7d2409eef89505cbd1924db /module/remote/pyload.thrift | |
parent | added nodejs as usuable js engine (diff) | |
download | pyload-49c4088ceb02da735d549014aaa9cba8c729ba54.tar.xz |
modified Api: filter downloads by state
Diffstat (limited to 'module/remote/pyload.thrift')
-rw-r--r-- | module/remote/pyload.thrift | 8 |
1 files changed, 4 insertions, 4 deletions
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), |