You can add a public getter method that allows access to the boolean variables from outside the object.
Or you can add a callback into some other code that handles it.
Ping & DNS - updated with new look and Ping home screen widget
Joined: Nov 23, 2010
Could do that, public getter.
But, what is this, it removes itself(as far as I can see) in last line, how can I read it then ?
EDIT: hmm, or tihs is realy in its essence olny example and I shoud move all que.removeWatcher out of this class, or something.
Joined: Mar 22, 2005
You should definitely customize the class to suit your needs.
That line simply removes that watcher object from the mail queue - it does not otherwise alter the object, so you can still use it any way you like (assuming that you have stored a reference to it somewhere, obviously).