summaryrefslogtreecommitdiff
path: root/portato/gui/wrapper.py
diff options
context:
space:
mode:
authorNecoro <>2008-01-18 21:19:42 +0000
committerNecoro <>2008-01-18 21:19:42 +0000
commit6a9034fb7a161e441934969553ffff63e49348ee (patch)
treec128d3c23dc9d54dfaabc40e8fd4c35a815dbe92 /portato/gui/wrapper.py
parente49c33d6114ddc8051c349aa325872bd7840289b (diff)
downloadportato-6a9034fb7a161e441934969553ffff63e49348ee.tar.gz
portato-6a9034fb7a161e441934969553ffff63e49348ee.tar.bz2
portato-6a9034fb7a161e441934969553ffff63e49348ee.zip
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'
Diffstat (limited to 'portato/gui/wrapper.py')
-rw-r--r--portato/gui/wrapper.py24
1 files changed, 22 insertions, 2 deletions
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 = []):