|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ymsg.network.event.SessionAdapter | +--YahooLib
yahooLib implements the Yahoo Messanger protocal within the specification of the CommLib interface. This class relies on the jYMSG library found on Sourceforge ( http://sourceforge.net/projects/jymsg9/).
Constructor Summary | |
YahooLib()
|
Method Summary | |
void |
bindCallback(CommLibCallback callback)
Binds the communication library to a callback object. |
void |
buzzReceived(ymsg.network.event.SessionEvent msg)
|
boolean |
connect(String loggin,
String password)
Establishes a connection to the IM server. |
void |
disconnect()
Terminates connection to the IM server. |
void |
doPing()
Force the CommLib to ping its connection. |
void |
errorPacketReceived(ymsg.network.event.SessionErrorEvent e)
|
String |
getWarningLevel()
Gets the current warning level of this account. |
String |
identifyProtocal()
Returns a string identifying the protocal this library implements. |
void |
inputExceptionThrown(ymsg.network.event.SessionExceptionEvent e)
|
void |
messageReceived(ymsg.network.event.SessionEvent msg)
|
void |
sendMessage(IM message)
Sends an instant message over the network. |
void |
sendWarning(String screenName,
boolean anonymous)
Attempts to warn an individual. |
Methods inherited from class ymsg.network.event.SessionAdapter |
chatConnectionClosed, chatLogoffReceived, chatLogonReceived, chatMessageReceived, chatUserUpdateReceived, conferenceInviteReceived, conferenceLogoffReceived, conferenceLogonReceived, conferenceMessageReceived, connectionClosed, contactRejectionReceived, contactRequestReceived, fileTransferReceived, friendAddedReceived, friendRemovedReceived, friendsUpdateReceived, listReceived, newMailReceived, notifyReceived, offlineMessageReceived |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public YahooLib()
Method Detail |
public void bindCallback(CommLibCallback callback)
CommLib
bindCallback
in interface CommLib
callback
- public boolean connect(String loggin, String password)
CommLib
connect
in interface CommLib
loggin
- password
-
public void disconnect()
CommLib
disconnect
in interface CommLib
public void sendMessage(IM message)
CommLib
sendMessage
in interface CommLib
message
- public void sendWarning(String screenName, boolean anonymous)
CommLib
sendWarning
in interface CommLib
screenName
- The target.anonymous
- If true, attempt to warn anonymously.public String getWarningLevel()
CommLib
getWarningLevel
in interface CommLib
public String identifyProtocal()
CommLib
identifyProtocal
in interface CommLib
public void doPing()
CommLib
Force the CommLib to ping its connection.
This will always be called from the connection maintnance thread, thus, the doPing implementation must block until the action is complete. The spirit of this method is to attempt to send a self addressed message, and reconnect to the network if the message fails to come through.
doPing
in interface CommLib
public void buzzReceived(ymsg.network.event.SessionEvent msg)
buzzReceived
in interface ymsg.network.event.SessionListener
buzzReceived
in class ymsg.network.event.SessionAdapter
public void messageReceived(ymsg.network.event.SessionEvent msg)
messageReceived
in interface ymsg.network.event.SessionListener
messageReceived
in class ymsg.network.event.SessionAdapter
public void errorPacketReceived(ymsg.network.event.SessionErrorEvent e)
errorPacketReceived
in interface ymsg.network.event.SessionListener
errorPacketReceived
in class ymsg.network.event.SessionAdapter
public void inputExceptionThrown(ymsg.network.event.SessionExceptionEvent e)
inputExceptionThrown
in interface ymsg.network.event.SessionListener
inputExceptionThrown
in class ymsg.network.event.SessionAdapter
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |