summaryrefslogtreecommitdiffstats
path: root/module/remote/thriftbackend/pyload.thrift
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-16 16:27:40 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-16 16:27:40 +0200
commit9dbcc48749f83d01e95538c8485fdffb2a47ea26 (patch)
treea66881b78a4fc10d1559ab9a11cf466469126d4d /module/remote/thriftbackend/pyload.thrift
parentclsoed #352 (diff)
downloadpyload-9dbcc48749f83d01e95538c8485fdffb2a47ea26.tar.xz
started to integrate package generator
Diffstat (limited to 'module/remote/thriftbackend/pyload.thrift')
-rw-r--r--module/remote/thriftbackend/pyload.thrift13
1 files changed, 10 insertions, 3 deletions
diff --git a/module/remote/thriftbackend/pyload.thrift b/module/remote/thriftbackend/pyload.thrift
index eff697d05..2995ce207 100644
--- a/module/remote/thriftbackend/pyload.thrift
+++ b/module/remote/thriftbackend/pyload.thrift
@@ -158,8 +158,8 @@ struct ServiceCall {
}
struct OnlineStatus {
- 1: string url,
- 2: string name,
+ 1: string name,
+ 2: PluginName plugin,
3: DownloadStatus status,
4: i64 size, // size <= 0 : unknown
}
@@ -206,10 +206,16 @@ service Pyload {
bool toggleReconnect(),
// download preparing
+
+ // packagename - urls
+ map<string, LinkList> generatePackages(1: LinkList links),
map<PluginName, LinkList> checkURLs(1: LinkList urls),
map<PluginName, LinkList> parseURLs(1: string html),
+
+ // parses results and generates packages
ResultID checkOnlineStatus(1: LinkList urls),
- map<PluginName, list<OnlineStatus>> pollResults(1: ResultID rid),
+ // poll results from previosly started online check , packagename - url - status
+ map<string, map<string, OnlineStatus>> pollResults(1: ResultID rid),
// downloads - information
list<DownloadInfo> statusDownloads(),
@@ -224,6 +230,7 @@ service Pyload {
map<i16, FileID> getFileOrder(1: PackageID pid)
// downloads - adding/deleting
+ list<PackageID> generateAndAddPackages(1: LinkList links, 2: Destination dest),
PackageID addPackage(1: string name, 2: LinkList links, 3: Destination dest),
void addFiles(1: PackageID pid, 2: LinkList links),
void uploadContainer(1: string filename, 2: binary data),