added support for typing notifications

cusax-fix
Emil Ivov 20 years ago
parent 74e0e8ee90
commit ba9ecb6db4

@ -1,4 +1,3 @@
/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
@ -26,8 +25,7 @@
import net.kano.joscar.snaccmd.error.*;
import net.kano.joustsim.oscar.oscar.service.bos.*;
import net.java.sip.communicator.service.protocol.icqconstants.*;
import java.io.OutputStream;
import java.io.IOException;
import java.io.*;
/**
* An utility that we use to test AIM/ICQ implementations of the
@ -230,6 +228,19 @@ public void initializeBuddyList(Hashtable listContents)
}
}
/**
* Sends to <tt>buddy</tt> a notification that our typing state has now
* changed to indicated by <tt>notif</tt>.
* @param buddy the screenname of the budy that we'd like to notify.
* @param state the typing state that we'd like to send to the specified
* buddy.
*/
public void sendTypingNotification(String buddy, TypingState state)
{
conn.getIcbmService().getImConversation(new Screenname(buddy))
.setTypingState(state);
}
/**
* Tries to find the buddy with screenname screenname in the given buddy
* list
@ -1071,7 +1082,6 @@ public void handleYourInfo(MainBosService service,
//
// icqtests.conn.getBosService().sendSnacRequest(getInfoCmd, new StatusResponseRetriever() );
// System.out.println("group.toString()=" + group.toString());
//icqtests.conn.getBosService().

Loading…
Cancel
Save