Commit 7b69fb54 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Committed some minor convenience code work.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6284 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5825ed92
......@@ -3,10 +3,10 @@ Name | Version
cindy.jar | 2.4.4
dwr.jar | 1.1.3
irclib.jar | 1.10
jml.jar | svn-20061124
joscar-client.jar | svn-20061113 (patched)
jml.jar | svn-20061201
joscar-client.jar | svn-20061201 (patched)
joscar-common.jar | svn-20061026
joscar-protocol.jar | svn-20061113 (patched)
joscar-protocol.jar | svn-20061201 (patched)
picocontainer.jar | 1.2.0
ymsg_network.jar | 0.61 (patched)
ymsg_support.jar | 0.61 (patched)
......@@ -1383,7 +1383,7 @@ public abstract class BaseTransport implements Component, RosterEventListener {
}
/**
* Sends a simple message throught he component manager.
* Sends a simple message through the component manager.
*
* @param to Who the message is for.
* @param from Who the message is from.
......@@ -1393,6 +1393,25 @@ public abstract class BaseTransport implements Component, RosterEventListener {
sendMessage(to, from, msg, Message.Type.chat);
}
/**
* Sends a typing notification the component manager.
*
* This will check whether the person supports typing notifications before sending.
*
* @param to Who the notification is for.
* @param from Who the notification is from.
*/
public void sendTypingNotification(JID to, JID from) {
Message m = new Message();
m.setTo(to);
m.setFrom(from);
Element xEvent = m.addChildElement("x", "jabber:x:event");
xEvent.addElement("id");
xEvent.addElement("composing");
sendPacket(m);
}
/**
* Intercepts roster additions related to the gateway and flags them as non-persistent.
*
......
/**
* $Revision$
* $Date$
*
* Copyright (C) 2006 Jive Software. All rights reserved.
*
* This software is published under the terms of the GNU Public License (GPL),
* a copy of which is included in this distribution.
*/
package org.jivesoftware.wildfire.gateway;
/**
* User Capabilities Tracking
*
* Some functionality in XMPP requires that you've already checked to see if the target XMPP
* user has indicated that they support the same functionality. This class is meant to help
* track a list of supported features that we care about, and any associated helpful information.
*
* @author Daniel Henninger
*/
public class UserCapabilities {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment