|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.hn.sleek.jmml.MessengerClientAdapter | +--commLibs.MSNLib
The MSNLib class implements the MSN communication protocal within the CommLib specification. It uses the jmml MSN library by Tony Tang (http://www.sfu.ca/~tonyt/.
Constructor Summary | |
MSNLib()
|
Method Summary | |
void |
bindCallback(CommLibCallback callback)
Binds the communication library to a callback object. |
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. |
String |
getWarningLevel()
Gets the current warning level of this account. |
String |
identifyProtocal()
Returns a string identifying the protocal this library implements. |
void |
incomingMessage(org.hn.sleek.jmml.IncomingMessageEvent inMsg)
|
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 org.hn.sleek.jmml.MessengerClientAdapter |
contactAdded, contactPropertyChanged, contactReceived, contactRemoved, groupReceived, loginAccepted, loginError, reverseListChanged, serverDisconnected |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MSNLib()
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 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 String getWarningLevel()
CommLib
getWarningLevel
in interface CommLib
public String identifyProtocal()
CommLib
identifyProtocal
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 void incomingMessage(org.hn.sleek.jmml.IncomingMessageEvent inMsg)
incomingMessage
in interface org.hn.sleek.jmml.MessengerClientListener
incomingMessage
in class org.hn.sleek.jmml.MessengerClientAdapter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |