|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MsnFileTransfer
Msn file transfer.
Method Summary | |
---|---|
void |
cancel()
Cancel transfer. |
MsnContact |
getContact()
Get the contact who sent the file or received the file. |
File |
getFile()
Get the transfer file. |
long |
getFileTotalSize()
Get the total size of the file. |
MsnMessenger |
getMessenger()
Get the MsnMessenger the controller belongs to. |
MsnFileTransferState |
getState()
Get file transfer state. |
MsnSwitchboard |
getSwitchboard()
Get the MsnSwitchboard the controller belongs to. |
long |
getTransferredSize()
Get transferred size. |
boolean |
isReceiver()
Is the MsnOwner receive file from others. |
boolean |
isSender()
Is the MsnOwner send file to others. |
boolean |
isStarted()
Is started. |
void |
setFile(File file)
Set the transfer file only if the transfer controller not started. |
void |
start()
Start transfer. |
Method Detail |
---|
MsnSwitchboard getSwitchboard()
MsnMessenger getMessenger()
MsnContact getContact()
MsnFileTransferState getState()
File getFile()
void setFile(File file) throws IllegalStateException
file
- transfer file
IllegalStateException
- if the transfer startedlong getFileTotalSize()
long getTransferredSize()
boolean isStarted()
void start()
void cancel()
boolean isSender()
boolean isReceiver()
|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |