summaryrefslogtreecommitdiffstats
path: root/pyload/remote/apitypes.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-22 23:00:43 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-22 23:00:43 +0100
commit7a386102e272abf12fc8a03733538421b2711045 (patch)
tree4d1f1ef511bf3e3b3d95f78d35067885deffc01e /pyload/remote/apitypes.py
parentfixed and improved last pull request (diff)
downloadpyload-7a386102e272abf12fc8a03733538421b2711045.tar.xz
improved addonManager, new property to expose addon information, new functionality to interact with addons
Diffstat (limited to 'pyload/remote/apitypes.py')
-rw-r--r--pyload/remote/apitypes.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/pyload/remote/apitypes.py b/pyload/remote/apitypes.py
index 287a5f096..6a7d2f063 100644
--- a/pyload/remote/apitypes.py
+++ b/pyload/remote/apitypes.py
@@ -114,20 +114,22 @@ class AccountInfo(BaseObject):
self.config = config
class AddonInfo(BaseObject):
- __slots__ = ['func_name', 'description', 'value']
+ __slots__ = ['name', 'description', 'value']
- def __init__(self, func_name=None, description=None, value=None):
- self.func_name = func_name
+ def __init__(self, name=None, description=None, value=None):
+ self.name = name
self.description = description
self.value = value
class AddonService(BaseObject):
- __slots__ = ['func_name', 'description', 'arguments', 'media']
+ __slots__ = ['func_name', 'label', 'description', 'arguments', 'pack', 'media']
- def __init__(self, func_name=None, description=None, arguments=None, media=None):
+ def __init__(self, func_name=None, label=None, description=None, arguments=None, pack=None, media=None):
self.func_name = func_name
+ self.label = label
self.description = description
self.arguments = arguments
+ self.pack = pack
self.media = media
class ConfigHolder(BaseObject):
@@ -419,6 +421,8 @@ class Iface(object):
pass
def getAllFiles(self):
pass
+ def getAllInfo(self):
+ pass
def getAllUserData(self):
pass
def getAvailablePlugins(self):
@@ -437,6 +441,8 @@ class Iface(object):
pass
def getFilteredFiles(self, state):
pass
+ def getInfoByPlugin(self, plugin):
+ pass
def getInteractionTasks(self, mode):
pass
def getLog(self, offset):
@@ -457,8 +463,6 @@ class Iface(object):
pass
def getWSAddress(self):
pass
- def hasAddonHandler(self, plugin, func):
- pass
def isInteractionWaiting(self, mode):
pass
def loadConfig(self, name):