org.walluck.oscar.client
Interface DaimMsgListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
AbstractOscarClient

public interface DaimMsgListener
extends EventListener

Interface DaimMsgListener This listener is called for incoming messages.

Since:
1.0
Version:
1.0
Author:
Alain Penders

Method Summary
 void incomingICQ(UserInfo from, int uin, int args, String message)
          We received an ICQ message.
 void incomingIM(Buddy buddy, UserInfo from, AOLIM args)
          Called when a message is received from someone.
 void joinRoomRequest(JoinRoomRequest jrr)
          Someone requested us to join a chat room.
 void receivedContacts(UserInfo from, int uin, Map contact, boolean massmessage)
          Received a list of contacts in an ICQ message In the contact Map, the keys are UINs as Strings, and the values are the correcponding nick names.
 void receivedICQSMS(UserInfo from, int uin, ICQSMSMessage message, boolean massmessage)
          Received SMS message over ICQ
 void receivedURL(UserInfo from, int uin, String url, String description, boolean massmessage)
          Received an ICQ URL message
 void typingNotification(String sn, short typing)
          Typing notification for a user.
 

Method Detail

incomingIM

void incomingIM(Buddy buddy,
                UserInfo from,
                AOLIM args)
Called when a message is received from someone. Use from.getSN() to get the buddy's ScreenName if Buddy is null. Use args.getMsg() to get the message.

Parameters:
buddy - Buddy who sent the message, or null if not created yet.
from - UserInfo
args -

joinRoomRequest

void joinRoomRequest(JoinRoomRequest jrr)
Someone requested us to join a chat room. To accept, call ChatTool.joinRoom() with the JoinRoomRequest instance.


typingNotification

void typingNotification(String sn,
                        short typing)
Typing notification for a user.

Parameters:
sn - Screen Name
typing - Typing code.

incomingICQ

void incomingICQ(UserInfo from,
                 int uin,
                 int args,
                 String message)
We received an ICQ message. This is a regular IM message if type == AIMConstants.AIM_ICQMSG_NORMAL. SMS, URL, and CONTACT type messages are handled with different methods.

Parameters:
from - UserInfo
uin - UIN#
args - Args. See AIMConstants.AIM_ICQMSG_*
message - Message.

receivedURL

void receivedURL(UserInfo from,
                 int uin,
                 String url,
                 String description,
                 boolean massmessage)
Received an ICQ URL message

Parameters:
from - UserInfo
uin - UIN#
url - URL
description - URL Description or null
massmessage - Is this a mass-message?

receivedContacts

void receivedContacts(UserInfo from,
                      int uin,
                      Map contact,
                      boolean massmessage)
Received a list of contacts in an ICQ message In the contact Map, the keys are UINs as Strings, and the values are the correcponding nick names.

Parameters:
from - UserInfo
uin - UIN#
contact - HashMap
massmessage - Is this a mass-message?

receivedICQSMS

void receivedICQSMS(UserInfo from,
                    int uin,
                    ICQSMSMessage message,
                    boolean massmessage)
Received SMS message over ICQ

Parameters:
from - UserInfo
uin - UIN#
message - ICQSMSMessage
massmessage - Is this a mass-message?