|
Project Wonder 5.0.0.8794 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IInstantMessenger
IInstantMessenger defines the interface for an instant messenger implementation to hook into the ERIMAdaptor framework.
| Method Summary | |
|---|---|
void |
addBuddy(String buddyName)
Adds a buddy to the buddy list. |
void |
addMessageListener(IMessageListener messageListener)
Adds a listener to this InstantMessenger. |
long |
buddyListLastModified()
Returns the timestamp of the last buddy list modification. |
void |
connect()
Connects to the instant messenger service. |
void |
disconnect()
Disconnects from the instant messenger service. |
String |
getAwayMessage(String buddyName)
Returns the away message for the given buddy |
String[] |
getBuddiesInGroupNamed(String groupName)
Returns the names of the buddies in the given group. |
String[] |
getGroupNames()
Returns the names of the buddy list groups. |
String |
getScreenName()
Returns the screen name of the current user. |
String |
getStatusMessage(String buddyName)
Returns the status message for the given buddy |
boolean |
isBuddyAway(String buddyName)
Returns whether or not the given buddy is away. |
boolean |
isBuddyOnline(String buddyName)
Returns whether or not the specified buddy name is online. |
boolean |
isConnected()
Returns whether or not this messenger is connected. |
void |
removeBuddy(String buddyName)
Removes a buddy from the buddy list. |
void |
removeMessageListener(IMessageListener messageListener)
Removes a listener from this InstantMessenger. |
void |
sendMessage(String buddyName,
String message,
boolean ignoreIfOffline)
Sends a message to the specified buddy. |
| Method Detail |
|---|
long buddyListLastModified()
String getScreenName()
boolean isConnected()
void connect()
throws IMConnectionException
IMConnectionException - if the connect request failsvoid disconnect()
boolean isBuddyOnline(String buddyName)
throws InstantMessengerException
buddyName - the name of the buddy to check for
InstantMessengerException
boolean isBuddyAway(String buddyName)
throws InstantMessengerException
buddyName - the name of the buddy to check
InstantMessengerException
String getStatusMessage(String buddyName)
throws InstantMessengerException
buddyName - the name of the buddy to return status for
InstantMessengerException
String getAwayMessage(String buddyName)
throws InstantMessengerException
buddyName - the name of the buddy to return the away message for
InstantMessengerException
void addBuddy(String buddyName)
throws InstantMessengerException
buddyName - the name of the buddy to add
InstantMessengerException
void removeBuddy(String buddyName)
throws InstantMessengerException
buddyName - the name of the buddy to remove
InstantMessengerException
String[] getGroupNames()
throws InstantMessengerException
InstantMessengerException
String[] getBuddiesInGroupNamed(String groupName)
throws InstantMessengerException
groupName - the name of the group to list
InstantMessengerException
void sendMessage(String buddyName,
String message,
boolean ignoreIfOffline)
throws MessageException
buddyName - the name of the buddy to messagemessage - the message to sendignoreIfOffline - should the message be ignored if the user is offline (false = throw an exception)
MessageExceptionvoid addMessageListener(IMessageListener messageListener)
messageListener - the message listener to addvoid removeMessageListener(IMessageListener messageListener)
messageListener - the message listener to remove
|
Last updated: Thu, Jan 8, 2009 12:32 PM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||