From 6a9034fb7a161e441934969553ffff63e49348ee Mon Sep 17 00:00:00 2001 From: Necoro <> Date: Fri, 18 Jan 2008 21:19:42 +0000 Subject: r664@Devoty: necoro | 2008-01-18 21:40:29 +0100 First support for 'delete on demand' r665@Devoty: necoro | 2008-01-18 22:18:05 +0100 Finished the 'on demand removal' --- portato/gui/wrapper.py | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'portato/gui/wrapper.py') diff --git a/portato/gui/wrapper.py b/portato/gui/wrapper.py index 2a88bdf..78a03ab 100644 --- a/portato/gui/wrapper.py +++ b/portato/gui/wrapper.py @@ -145,6 +145,15 @@ class Tree: @rtype boolean""" raise NotImplementedError + def first_iter (self, it): + """Returns the iterator at the top. + + @param it: the iterator + @type it: Iterator + @returns: the top iterator + @rtype: Iterator""" + raise NotImplementedError + def get_emerge_it (self): """Returns an iterator signaling the top of the emerge section. @@ -166,11 +175,22 @@ class Tree: @rtype: Iterator""" raise NotImplementedError - def set_in_progress (self, it): + def set_in_progress (self, it, to = True): """Marks the queue where the given iterator belongs as being in progress. @param it: one iterator of the queue to mark to - @type it: Iterator""" + @type it: Iterator + @param to: whether to enable or disable + @type to: boolean""" + raise NotImplementedError + + def get_in_progress (self, it): + """Returns whether the queue where the given iterator belongs to, is marked as "being in progress". + + @param it: the iterator + @type it: Iterator + @returns: whether the queue is marked "in progress" + @rtype: boolean""" raise NotImplementedError def build_append_value (self, cpv, oneshot = False, update = False, downgrade = False, version = None, useChange = []): -- cgit v1.2.3-54-g00ecf