2
2
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3
3
<html><head><title>Python: module Monitored</title>
4
</head><body bgcolor="#f0f0f8">
4
</head><body bgcolor="#ffffff">
6
6
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
8
8
<td valign=bottom> <br>
9
9
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>Monitored</strong></big></big></font></td
10
10
><td align=right valign=bottom
11
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/mike/src/jokosher/trunk/Jokosher/Monitored.py">/home/mike/src/jokosher/trunk/Jokosher/Monitored.py</a></font></td></tr></table>
11
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/david/Projects/Jokosher/trunk/Jokosher/Monitored.py">/home/david/Projects/Jokosher/trunk/Jokosher/Monitored.py</a></font></td></tr></table>
12
12
<p><tt># THIS FILE IS PART OF THE JOKOSHER PROJECT AND LICENSED UNDER THE GPL. SEE<br>
13
13
# THE 'COPYING' FILE FOR DETAILS<br>
19
19
#-------------------------------------------------------------------------------</tt></p>
21
21
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
22
<tr bgcolor="#ee77aa">
22
<tr bgcolor="#3465a4">
23
23
<td colspan=3 valign=bottom> <br>
24
24
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
26
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
26
<tr><td bgcolor="#3465a4"><tt> </tt></td><td> </td>
27
27
<td width="100%"><dl>
28
28
<dt><font face="helvetica, arial"><a href="Monitored.html#Monitored">Monitored</a>
31
31
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
32
<tr bgcolor="#ffc8d8">
32
<tr bgcolor="#729fcf">
33
33
<td colspan=3 valign=bottom> <br>
34
34
<font color="#000000" face="helvetica, arial"><a name="Monitored">class <strong>Monitored</strong></a></font></td></tr>
36
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
36
<tr bgcolor="#729fcf"><td rowspan=2><tt> </tt></td>
37
37
<td colspan=2><tt>This class defines a set of functions to allow derived classes to<br>
38
38
have attached monitor objects, which should be signaled if the <br>
39
39
monitored objects state changes.<br> </tt></td></tr>
40
40
<tr><td> </td>
41
41
<td width="100%">Methods defined here:<br>
42
<dl><dt><a name="Monitored-AddListener"><strong>AddListener</strong></a>(self, obj)</dt><dd><tt>Adds an object to report changes too.<br>
42
<dl><dt><a name="Monitored-AddListener"><strong>AddListener</strong></a>(self, obj)</dt><dd><tt>Adds an object to report changes to.<br>
44
Keyword arguments:<br>
45
obj -- An object to inform when StateChanged is called.</tt></dd></dl>
45
obj -- an object to inform when StateChanged is called.</tt></dd></dl>
47
<dl><dt><a name="Monitored-ClearListeners"><strong>ClearListeners</strong></a>(self)</dt><dd><tt>Remove all listeners to allow them to be destroyed.</tt></dd></dl>
47
49
<dl><dt><a name="Monitored-RemoveListener"><strong>RemoveListener</strong></a>(self, obj)</dt><dd><tt>Stop reporting changes to the specified object.<br>
49
Keyword arguments:<br>
50
obj -- The object which should no longer receive change updates.</tt></dd></dl>
52
obj -- the object which should no longer receive change updates.</tt></dd></dl>
52
<dl><dt><a name="Monitored-StateChanged"><strong>StateChanged</strong></a>(self, change<font color="#909090">=None</font>)</dt><dd><tt>This function should be called when we want a change to be reported to all objects previously added by AddListener. <br>
54
<dl><dt><a name="Monitored-StateChanged"><strong>StateChanged</strong></a>(self, change<font color="#909090">=None</font>, *extra)</dt><dd><tt>This method should be called when we want a change to be reported<br>
55
to all objects previously added by AddListener. <br>
54
Keyword arguments:<br>
55
change -- The change which has occured (optional).</tt></dd></dl>
58
change -- the change which has occured.<br>
59
extra -- any extra parameters that should be passed.</tt></dd></dl>
57
<dl><dt><a name="Monitored-__init__"><strong>__init__</strong></a>(self)</dt></dl>
61
<dl><dt><a name="Monitored-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Creates a new instance of <a href="#Monitored">Monitored</a>.</tt></dd></dl>
59
63
</td></tr></table></td></tr></table>
b'\\ No newline at end of file'