summaryrefslogtreecommitdiffstats
path: root/pyload/api/CollectorApi.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/api/CollectorApi.py')
-rw-r--r--pyload/api/CollectorApi.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/pyload/api/CollectorApi.py b/pyload/api/CollectorApi.py
new file mode 100644
index 000000000..49340285e
--- /dev/null
+++ b/pyload/api/CollectorApi.py
@@ -0,0 +1,37 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+from pyload.Api import Api, RequirePerm, Permission
+
+from ApiComponent import ApiComponent
+
+class CollectorApi(ApiComponent):
+ """ Link collector """
+
+ @RequirePerm(Permission.All)
+ def getCollector(self):
+ pass
+
+ @RequirePerm(Permission.Add)
+ def addToCollector(self, links):
+ pass
+
+ @RequirePerm(Permission.Add)
+ def addFromCollector(self, name, new_name):
+ pass
+
+ @RequirePerm(Permission.Delete)
+ def deleteCollPack(self, name):
+ pass
+
+ @RequirePerm(Permission.Add)
+ def renameCollPack(self, name, new_name):
+ pass
+
+ @RequirePerm(Permission.Delete)
+ def deleteCollLink(self, url):
+ pass
+
+
+if Api.extend(CollectorApi):
+ del CollectorApi \ No newline at end of file