From 1898e03577eac27a8e27561eda952647643ec69b Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Thu, 26 Jun 2008 20:26:25 +0200 Subject: Added very basic set querying --- portato/backend/system_interface.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'portato/backend/system_interface.py') diff --git a/portato/backend/system_interface.py b/portato/backend/system_interface.py index 4b0f8df..16f0a9c 100644 --- a/portato/backend/system_interface.py +++ b/portato/backend/system_interface.py @@ -12,6 +12,21 @@ class SystemInterface (object): + def has_set_support (self): + """Signals, whether this backend supports sets. + + @rtype: boolean + """ + raise NotImplementedError + + def get_sets (self): + """Returns all supported sets in tuples consisting of name and description. + If sets aren't supported, at least "world" and "system" have to be returned. + + @rtype: (string, string)[] + """ + raise NotImplementedError + def get_version (self): """Returns the version of the used backend. -- cgit v1.2.3-54-g00ecf