public interface IChatGuiService
Modifier and Type | Method and Description |
---|---|
IFuture<Void> |
acceptFile(String id,
String filename)
Accept a waiting file transfer.
|
IFuture<Void> |
cancelTransfer(String id)
Cancel an ongoing file transfer.
|
IIntermediateFuture<IChatService> |
findUsers()
Search for available chat services.
|
IIntermediateFuture<TransferInfo> |
getFileTransfers()
Get a snapshot of the currently managed file transfers.
|
IFuture<byte[]> |
getImage()
Get the avatar image.
|
IFuture<String> |
getNickName()
Get the user name.
|
IIntermediateFuture<IChatService> |
message(String text,
IComponentIdentifier[] receivers,
boolean self)
Post a message.
|
IFuture<Void> |
rejectFile(String id)
Reject a waiting file transfer.
|
IFuture<Void> |
sendFile(String filename,
IComponentIdentifier cid)
Send a local file to the target component.
|
IFuture<Void> |
setImage(byte[] image)
Set the avatar image.
|
IFuture<Void> |
setNickName(String nick)
Set the user name.
|
IIntermediateFuture<IChatService> |
status(String status,
byte[] image,
IComponentIdentifier[] receivers)
Post a status change.
|
ISubscriptionIntermediateFuture<ChatEvent> |
subscribeToEvents()
Subscribe to events from the chat service.
|
IFuture<byte[]> getImage()
ISubscriptionIntermediateFuture<ChatEvent> subscribeToEvents()
IIntermediateFuture<IChatService> findUsers()
IIntermediateFuture<IChatService> message(String text, IComponentIdentifier[] receivers, boolean self)
text
- The text message.receivers
- The receivers the message should be sent to.self
- Flag if message should also be sent to service itself.IIntermediateFuture<IChatService> status(String status, byte[] image, IComponentIdentifier[] receivers)
status
- The new status or null for no change.image
- The new avatar iamge or null for no change.IIntermediateFuture<TransferInfo> getFileTransfers()
IFuture<Void> sendFile(String filename, IComponentIdentifier cid)
filename
- The file name.cid
- The id of a remote chat component.IFuture<Void> acceptFile(String id, String filename)
id
- The transfer id.filename
- The location of the file (possibly changed by user).IFuture<Void> rejectFile(String id)
id
- The transfer id.Copyright © 2012. All Rights Reserved.