|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MsnSwitchboard
Msn switchboard, communication with MSN SB server.
Method Summary | |
---|---|
void |
close()
Close switchboard. |
boolean |
containContact(Email email)
Is contain the contact. |
MsnFileTransfer[] |
getActiveFileTransfers()
Get all active file transfer. |
MsnContact[] |
getAllContacts()
Get all contacts on the switchboard. |
Object |
getAttachment()
Get the attachment. |
MsnConnection |
getConnection()
Get current switchboard's connectin information. |
MsnMessageChain |
getIncomingMessageChain()
Get the incoming message chain. |
MsnMessenger |
getMessenger()
Get the MsnMessenger belongs to. |
MsnMessageChain |
getOutgoingMessageChain()
Get the outgoing message chain. |
void |
inviteContact(Email email)
Inviate a contact to join the switchboard. |
void |
send(MsnOutgoingMessage message)
This method is a shorthand for: |
boolean |
send(MsnOutgoingMessage message,
boolean block)
Send protocol message. |
void |
sendFile(File file)
Send file. |
void |
sendMessage(MsnMimeMessage message)
This method is a shorthand for: |
boolean |
sendMessage(MsnMimeMessage message,
boolean block)
Send message to others. |
void |
sendText(String text)
Send text message without format. |
void |
setAttachment(Object attachment)
Set the attachment. |
Method Detail |
---|
MsnMessenger getMessenger()
Object getAttachment()
void setAttachment(Object attachment)
attachment
- attachmentMsnConnection getConnection()
MsnMessageChain getOutgoingMessageChain()
MsnMessageChain getIncomingMessageChain()
void close()
MsnContact[] getAllContacts()
boolean containContact(Email email)
email
- email
void inviteContact(Email email)
email
- contact's emailMsnFileTransfer[] getActiveFileTransfers()
void sendFile(File file) throws IllegalArgumentException, IllegalStateException
file
- send file
IllegalArgumentException
- if file not existed
IllegalStateException
- if no one or more than one contact in current switchboardvoid sendText(String text)
text
- textboolean sendMessage(MsnMimeMessage message, boolean block)
message
- MsnMimeMessageblock
- is block
void sendMessage(MsnMimeMessage message)
sendMessage(message, false);
message
- MsnMimeMessageboolean send(MsnOutgoingMessage message, boolean block)
message
- MsnOutgoingMessageblock
- is block
void send(MsnOutgoingMessage message)
send(message, false);
message
- MsnOutgoingMessage
|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |