|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jml.impl.AbstractMessenger
public abstract class AbstractMessenger
Implement MsnMessenger basic method.
Constructor Summary | |
---|---|
AbstractMessenger()
|
Method Summary | |
---|---|
void |
addContactListListener(MsnContactListListener listener)
Add a new listener for the contact list icoming events. |
void |
addEmailListener(MsnEmailListener listener)
Add a email events listener. |
void |
addFileTransferListener(MsnFileTransferListener listener)
Add a file transfer events listener. |
void |
addListener(MsnAdapter listener)
Add a new listener for all interfaces. |
void |
addMessageListener(MsnMessageListener listener)
Add a new listener for incoming messages. |
void |
addMessengerListener(MsnMessengerListener listener)
Add a new Messenger events listener. |
void |
addSwitchboardListener(MsnSwitchboardListener listener)
Add a new switchboard incominf events listener. |
void |
fireContactAddCompleted(MsnContact contact)
Notify the listeners about the completion of a contact addition. |
void |
fireContactAddedMe(MsnContact contact)
Notify the listeners because someone has added me to his contact list. |
void |
fireContactJoinSwitchboard(MsnSwitchboard switchboard,
MsnContact contact)
Notify the listeners about the addition of a contact to a Switchboard. |
void |
fireContactLeaveSwitchboard(MsnSwitchboard switchboard,
MsnContact contact)
Notify the listeners about the removal of a contact from a Switchboard. |
void |
fireContactListInitCompleted()
Notify the listeners about the contact list initialization completion. |
void |
fireContactListSyncCompleted()
Notify the listeners about the contact list synchronization completion. |
void |
fireContactRemoveCompleted(MsnContact contact)
Notify the listeners about the completion of a contact removal. |
void |
fireContactRemovedMe(MsnContact contact)
Notify the listeners because someone has removed me from his contact list. |
void |
fireContactStatusChanged(MsnContact contact)
Notify the listeners about the status change of a contact. |
void |
fireControlMessageReceived(MsnSwitchboard switchboard,
MsnControlMessage message,
MsnContact contact)
Notify the listeners about a control message arrival. |
void |
fireDatacastMessageReceived(MsnSwitchboard switchboard,
MsnDatacastMessage message,
MsnContact contact)
Notify the listeners about a datacast message arrival. |
void |
fireEmailActivityNotificationReceived(MsnSwitchboard switchboard,
MsnEmailActivityMessage message,
MsnContact contact)
|
void |
fireExceptionCaught(Throwable throwable)
Notify the listeners about an exception. |
void |
fireFileTransferFinished(MsnFileTransfer transfer)
Notify the listeners that a file transfer has finished. |
void |
fireFileTransferProcess(MsnFileTransfer transfer)
Notify the listeners about the process of a file transfer. |
void |
fireFileTransferRequestReceived(MsnFileTransfer transfer)
Notify the listeners that a request for a file transfer has been received. |
void |
fireFileTransferStarted(MsnFileTransfer transfer)
Notify the listeners that a file transfer has started. |
void |
fireGroupAddCompleted(MsnGroup group)
Notify the listeners about the completion of a group addition. |
void |
fireGroupRemoveCompleted(MsnGroup group)
Notify the listeners about the completion of a group removal. |
void |
fireInitialEmailDataReceived(MsnSwitchboard switchboard,
MsnEmailInitEmailData message,
MsnContact contact)
|
void |
fireInitialEmailNotificationReceived(MsnSwitchboard switchboard,
MsnEmailInitMessage message,
MsnContact contact)
|
void |
fireInstantMessageReceived(MsnSwitchboard switchboard,
MsnInstantMessage message,
MsnContact contact)
Notify the listeners about an instant message arrival. |
void |
fireLoginCompleted()
Notify the listeners about login completion. |
void |
fireLogout()
Notify the listeners about logout completion. |
void |
fireNewEmailNotificationReceived(MsnSwitchboard switchboard,
MsnEmailNotifyMessage message,
MsnContact contact)
|
void |
fireOwnerStatusChanged()
Notify the listeners about the change of the owner status. |
void |
fireP2PMessageReceived(MsnSwitchboard switchboard,
MsnP2PMessage message,
MsnContact contact)
Notify the listeners about a P2P message arrival. |
void |
fireSwitchboardClosed(MsnSwitchboard switchboard)
Notify the listeners about the finalization of a Switchboard. |
void |
fireSwitchboardStarted(MsnSwitchboard switchboard)
Notify the listeners about the start of a new Switchboard. |
void |
fireSystemMessageReceived(MsnSystemMessage message)
Notify the listeners about a system message arrival. |
void |
fireUnknownMessageReceived(MsnSwitchboard switchboard,
MsnUnknownMessage message,
MsnContact contact)
Notify the listeners about a control message arrival. |
MsnProtocol |
getActualMsnProtocol()
Get actual used protocol. |
Object |
getAttachment()
Get the attachment. |
DisplayPictureDuelManager |
getDisplayPictureDuelManager()
Retrieves the instance of the duel manager to be used by this session. |
MsnProtocol[] |
getSupportedProtocol()
Get supported protocols. |
boolean |
isLogIncoming()
Is log incoming message. |
boolean |
isLogOutgoing()
Is log outgoing message. |
void |
removeContactListListener(MsnContactListListener listener)
Removes a listener for incoming events for the contact list. |
void |
removeEmailListener(MsnEmailListener listener)
Removes a email listener. |
void |
removeFileTransferListener(MsnFileTransferListener listener)
Removes a file transfer listener. |
void |
removeListener(MsnAdapter listener)
Remove the MsnAdapter listener. |
void |
removeMessageListener(MsnMessageListener listener)
Remosves a listener for incoming messages. |
void |
removeMessengerListener(MsnMessengerListener listener)
Remove the Messenger listener. |
void |
removeSwitchboardListener(MsnSwitchboardListener listener)
Remove a switchboard listener. |
void |
retrieveDisplayPicture(MsnObject displayPicture,
DisplayPictureListener listener)
Retrieves the content of a display picture, given as a MsnObject. |
void |
send(MsnOutgoingMessage message)
This method is a shorthand for: |
void |
setActualMsnProtocol(MsnProtocol protocol)
Sets the actual version of the protocol used. |
void |
setAttachment(Object attachment)
Set the attachment. |
void |
setLogIncoming(boolean logIncoming)
Set log incoming message. |
void |
setLogOutgoing(boolean logOutgoing)
Set log outgoing message. |
void |
setSupportedProtocol(MsnProtocol[] supportedProtocol)
Set supported protocols. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jml.MsnMessenger |
---|
addFriend, addGroup, blockFriend, copyFriend, getActiveSwitchboards, getConnection, getContactList, getIncomingMessageChain, getOutgoingMessageChain, getOwner, login, logout, moveFriend, newSwitchboard, removeFriend, removeFriend, removeGroup, renameFriend, renameGroup, send, sendText, unblockFriend |
Constructor Detail |
---|
public AbstractMessenger()
Method Detail |
---|
public Object getAttachment()
MsnMessenger
getAttachment
in interface MsnMessenger
MsnMessenger.getAttachment()
public void setAttachment(Object attachment)
MsnMessenger
setAttachment
in interface MsnMessenger
attachment
- attachmentMsnMessenger.setAttachment(Object)
public boolean isLogIncoming()
MsnMessenger
isLogIncoming
in interface MsnMessenger
MsnMessenger.isLogIncoming()
public void setLogIncoming(boolean logIncoming)
MsnMessenger
setLogIncoming
in interface MsnMessenger
logIncoming
- set log incoming messageMsnMessenger.setLogIncoming(boolean)
public boolean isLogOutgoing()
MsnMessenger
isLogOutgoing
in interface MsnMessenger
MsnMessenger.isLogOutgoing()
public void setLogOutgoing(boolean logOutgoing)
MsnMessenger
setLogOutgoing
in interface MsnMessenger
logOutgoing
- set log outgoing messageMsnMessenger.setLogOutgoing(boolean)
public MsnProtocol[] getSupportedProtocol()
MsnMessenger
getSupportedProtocol
in interface MsnMessenger
MsnMessenger.getSupportedProtocol()
public void setSupportedProtocol(MsnProtocol[] supportedProtocol)
MsnMessenger
setSupportedProtocol
in interface MsnMessenger
supportedProtocol
- supported protocolsMsnMessenger.setSupportedProtocol(MsnProtocol[])
public MsnProtocol getActualMsnProtocol()
MsnMessenger
getActualMsnProtocol
in interface MsnMessenger
MsnMessenger.getActualMsnProtocol()
public void setActualMsnProtocol(MsnProtocol protocol)
protocol
- Instance of the protocol version used.public void send(MsnOutgoingMessage message)
MsnMessenger
send(message, false);
send
in interface MsnMessenger
message
- MsnOutgoingMessageMsnMessenger.send(MsnOutgoingMessage)
public void retrieveDisplayPicture(MsnObject displayPicture, DisplayPictureListener listener) throws JmlException
MsnMessenger
retrieveDisplayPicture
in interface MsnMessenger
displayPicture
- Instance of the MsnObject for the display picture.listener
- Listener for the display pictura retrieval progress.
JmlException
- If the MsnObject instance is null, or isn't a
display picture or emoticon.MsnMessenger.retrieveDisplayPicture(MsnObject, DisplayPictureListener)
public DisplayPictureDuelManager getDisplayPictureDuelManager()
MsnMessenger
getDisplayPictureDuelManager
in interface MsnMessenger
MsnMessenger.getDisplayPictureDuelManager()
public void addListener(MsnAdapter listener)
MsnMessenger
addListener
in interface MsnMessenger
listener
- Instance of MsnAdapter that listen to all interfaces.MsnMessenger.addListener(MsnAdapter)
public void removeListener(MsnAdapter listener)
MsnMessenger
removeListener
in interface MsnMessenger
listener
- Instance of the listener to be removed.MsnMessenger.removeListener(MsnAdapter)
public void addMessengerListener(MsnMessengerListener listener)
MsnMessenger
addMessengerListener
in interface MsnMessenger
listener
- New Messenger listener.MsnMessenger.addMessengerListener(MsnMessengerListener)
public void removeMessengerListener(MsnMessengerListener listener)
MsnMessenger
removeMessengerListener
in interface MsnMessenger
listener
- Instance of Messenger listener to be removed.MsnMessenger.removeMessengerListener(MsnMessengerListener)
public void fireLoginCompleted()
public void fireLogout()
public void fireExceptionCaught(Throwable throwable)
throwable
- Instance of the exception.public void addMessageListener(MsnMessageListener listener)
MsnMessenger
addMessageListener
in interface MsnMessenger
listener
- Instance of the listener.MsnMessenger.addMessageListener(MsnMessageListener)
public void removeMessageListener(MsnMessageListener listener)
MsnMessenger
removeMessageListener
in interface MsnMessenger
listener
- Instance of the listener.MsnMessenger.removeMessageListener(MsnMessageListener)
public void fireInstantMessageReceived(MsnSwitchboard switchboard, MsnInstantMessage message, MsnContact contact)
switchboard
- Instance of the switchboard where the message was
received.message
- Instance of the received message.contact
- MsnContact that has sended the instant message.public void fireControlMessageReceived(MsnSwitchboard switchboard, MsnControlMessage message, MsnContact contact)
switchboard
- Instance of the switchboard where the message was
received.message
- Instance of the received message.contact
- MsnContact that has sended the instant message.public void fireSystemMessageReceived(MsnSystemMessage message)
message
- Instance of the received message.public void fireDatacastMessageReceived(MsnSwitchboard switchboard, MsnDatacastMessage message, MsnContact contact)
switchboard
- Instance of the switchboard where the message was
received.message
- Instance of the received message.contact
- MsnContact that has sended the instant message.public void fireUnknownMessageReceived(MsnSwitchboard switchboard, MsnUnknownMessage message, MsnContact contact)
switchboard
- Instance of the switchboard where the message was
received.message
- Instance of the received message.contact
- MsnContact that has sended the instant message.public void fireP2PMessageReceived(MsnSwitchboard switchboard, MsnP2PMessage message, MsnContact contact)
switchboard
- Instance of the switchboard where the message was
received.message
- Instance of the received message.contact
- MsnContact that has sended the instant message.public void addEmailListener(MsnEmailListener listener)
MsnMessenger
addEmailListener
in interface MsnMessenger
listener
- Instance of the listener.public void removeEmailListener(MsnEmailListener listener)
MsnMessenger
removeEmailListener
in interface MsnMessenger
listener
- Instance of the listener.public void fireInitialEmailNotificationReceived(MsnSwitchboard switchboard, MsnEmailInitMessage message, MsnContact contact)
public void fireInitialEmailDataReceived(MsnSwitchboard switchboard, MsnEmailInitEmailData message, MsnContact contact)
public void fireNewEmailNotificationReceived(MsnSwitchboard switchboard, MsnEmailNotifyMessage message, MsnContact contact)
public void fireEmailActivityNotificationReceived(MsnSwitchboard switchboard, MsnEmailActivityMessage message, MsnContact contact)
public void addContactListListener(MsnContactListListener listener)
MsnMessenger
addContactListListener
in interface MsnMessenger
listener
- New instance of the listener.MsnMessenger.addContactListListener(MsnContactListListener)
public void removeContactListListener(MsnContactListListener listener)
MsnMessenger
removeContactListListener
in interface MsnMessenger
listener
- Instance of the listener to be removed.MsnMessenger.removeContactListListener(MsnContactListListener)
public void fireContactListSyncCompleted()
public void fireContactListInitCompleted()
public void fireContactStatusChanged(MsnContact contact)
contact
- Instance of the contact that has changed its status.public void fireOwnerStatusChanged()
public void fireContactAddedMe(MsnContact contact)
contact
- Instance of the contact that added me.public void fireContactRemovedMe(MsnContact contact)
contact
- Instance of the contact that removed me.public void fireContactAddCompleted(MsnContact contact)
contact
- Instance of the added contact.public void fireContactRemoveCompleted(MsnContact contact)
contact
- Instance of the removed contact.public void fireGroupAddCompleted(MsnGroup group)
group
- Instance of the added group.public void fireGroupRemoveCompleted(MsnGroup group)
group
- Instance of the removed group.public void addSwitchboardListener(MsnSwitchboardListener listener)
MsnMessenger
addSwitchboardListener
in interface MsnMessenger
listener
- New listener instance.MsnMessenger.addSwitchboardListener(MsnSwitchboardListener)
public void removeSwitchboardListener(MsnSwitchboardListener listener)
MsnMessenger
removeSwitchboardListener
in interface MsnMessenger
listener
- Instance of the listener.MsnMessenger.removeSwitchboardListener(MsnSwitchboardListener)
public void fireSwitchboardStarted(MsnSwitchboard switchboard)
switchboard
- Instance of the started switchboard.public void fireSwitchboardClosed(MsnSwitchboard switchboard)
switchboard
- Instance of the closed switchboard.public void fireContactJoinSwitchboard(MsnSwitchboard switchboard, MsnContact contact)
switchboard
- Instance of the switchboard.contact
- Instance of the added contact.public void fireContactLeaveSwitchboard(MsnSwitchboard switchboard, MsnContact contact)
switchboard
- Instance of the switchboard.contact
- Instance of the removed contact.public void addFileTransferListener(MsnFileTransferListener listener)
MsnMessenger
addFileTransferListener
in interface MsnMessenger
listener
- Instance of the listener.MsnMessenger.addFileTransferListener(MsnFileTransferListener)
public void removeFileTransferListener(MsnFileTransferListener listener)
MsnMessenger
removeFileTransferListener
in interface MsnMessenger
listener
- Instance of the listener.MsnMessenger.removeFileTransferListener(MsnFileTransferListener)
public void fireFileTransferRequestReceived(MsnFileTransfer transfer)
transfer
- Instance of the file transfer.public void fireFileTransferStarted(MsnFileTransfer transfer)
transfer
- Instance of the file transfer.public void fireFileTransferProcess(MsnFileTransfer transfer)
transfer
- Instance of the file transfer.public void fireFileTransferFinished(MsnFileTransfer transfer)
transfer
- Instance of the file transfer.
|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |