Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 548331529830b351333fb7898f0c86ad557b50e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/****************************************************************************
 * Copyright (c) 2004 Composent, Inc. and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Composent, Inc. - initial API and implementation
 *****************************************************************************/
package org.eclipse.ecf.presence;

import org.eclipse.ecf.core.identity.ID;
import org.eclipse.ecf.core.util.ECFException;

/**
 * Send presence change events to remotes on buddy list.
 * 
 */
public interface IPresenceSender {

	/**
	 * Send a presence update to a remote user
	 * 
	 * @param targetID
	 *            the {@link ID} of the target user for the presence update. If
	 *            <code>null</code>, the presence update is sent to all users
	 *            in current roster.  If non-<code>null</code> the presence update
	 *            is sent only to the given <code>targetID</code>.
	 * @param presence
	 *            the presence information. Should not be <code>null</code>.
	 * 
	 * @exception ECFException
	 *                thrown if request cannot be sent (e.g. because of previous
	 *                disconnect).
	 */
	public void sendPresenceUpdate(ID targetID, IPresence presence)
			throws ECFException;

}

Back to the top