|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WatchList
Singleton that manages the list of people being watched. The program uses the server's WATCH facility if available, or ISON if not, to maintain the list.
Method Summary | |
---|---|
boolean |
addMask(IRCUserAddress mask)
Adds a mask to the watch list. |
void |
addTemporaryMask(Server s,
IRCUserAddress mask)
Adds a mask to the temporary watch list (doesn't show in UI). |
IRCUserAddress[] |
getMasks()
Returns the list of masks. |
boolean |
isKnown(Server s,
java.lang.String nick)
Checks whether we know the online status of a user. |
boolean |
isOnline(Server s,
java.lang.String nick)
Checks whether a user on the watch list is online. |
boolean |
removeMask(IRCUserAddress mask)
Removes a mask from the watch list. |
void |
removeTemporaryMask(Server s,
IRCUserAddress mask)
Removes a mask from the temporary watch list. |
Method Detail |
---|
boolean addMask(IRCUserAddress mask)
Masks are of the form nick!user@host and may include * wildcards in user and host but not in nickname. If you add a mask that doesn't include a !, it assumes it's a nickname. If you add a mask that's already present, nothing happens. For servers that don't support WATCH, the username and host are ignored.
mask
- Mask to add
void addTemporaryMask(Server s, IRCUserAddress mask)
s
- Servermask
- Mask to addboolean removeMask(IRCUserAddress mask)
mask
- Mask to remove
void removeTemporaryMask(Server s, IRCUserAddress mask)
s
- Servermask
- Mask to removeIRCUserAddress[] getMasks()
boolean isKnown(Server s, java.lang.String nick)
s
- Servernick
- Nickname
boolean isOnline(Server s, java.lang.String nick)
s
- Server to look onnick
- Nick to look for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |