1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-05 11:45:58 +01:00
Commit graph

37 commits

Author SHA1 Message Date
Florian Schmaus
bfefbdb777 Implement XEP-0184 delivery notifications
This patch provides three components required to implement XEP-0184:

 * DeliveryReceiptRequest is a PacketExtension to request a receipt
 * DeliveryReceipt is a PacketExtension that contains the receipt
 * DeliveryReceiptManager to handle sending/receiving of requests and
   receipts.

Implementation:

For requesting a receipt, just add a new DeliveryReceiptRequest() to
your message or use the helper function:

    DeliveryReceiptManager.addDeliveryReceiptRequest(packet);

Register a ReceiptReceivedListener to find out if your packet arrived:

    DeliveryReceiptManager.getInstanceFor(myConnection)
	.registerReceiptReceivedListener(new ReceiptReceivedListener() {
	    @Override public void onReceiptReceived(String fromJid,
				    String toJid, String receiptId) {
		// receipt received for packet id receiptId
	    }

To answer a receipt request, you can either check incoming packets
manually:

    if (DeliveryReceiptManager.hasDeliveryReceiptRequest(packet)) {
	// send receipt
    }

Or you can enable automatic receipt transmission with:

    DeliveryReceiptManager.getInstanceFor(myConnection)
	    .setAutoReceiptsEnabled(true);

Signed-Off-By: Georg Lukas <georg@op-co.de>

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13431 b35dd754-fafc-0310-a699-88a17e54d16e
2013-02-04 09:53:56 +00:00
Florian Schmaus
d8f11a0b71 SMACK-388 register PingProvider with smack.providers. The static register code was removed with 13406 (http://fisheye.igniterealtime.org/changelog/smack?cs=13406)
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13413 b35dd754-fafc-0310-a699-88a17e54d16e
2013-01-28 09:57:09 +00:00
Florian Schmaus
7fa65f74ed SMACK-403 Correct location of the Forwarded Provider
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13412 b35dd754-fafc-0310-a699-88a17e54d16e
2013-01-28 09:49:13 +00:00
Florian Schmaus
2a1f4e8376 SMACK-403 add support for
XEP-0297 Stanza Forwarding and XEP-0280 Message Carbons
and
XEP-0297: Stanza Forwarding implementation

This patch adds Forwarded.java, a class to wrap messages forwarded
from a different entity. A forwarded stanza contains of a Packet and
an optional timestamp.

WARNING: The current implementation only allows to forward Message
packets, as there is no universal way to parse a Packet from SMACK.

XEP-0280 Message Carbons implementation

This patch adds Carbon.java, a class to wrap the packet extension
defined in XEP-0280 to store copies of messages sent to or received
by a user to his other client(s).

The CarbonManager allows to register XEP-0280 support with the SDM,
to enable and disable the feature and to manipulate messages
accordingly.

Signed-Off-By: Georg Lukas <georg@op-co.de>

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13411 b35dd754-fafc-0310-a699-88a17e54d16e
2013-01-28 09:38:02 +00:00
Florian Schmaus
4018fa3c7b SMACK-388 Moved PingProvider, Ping and Pong under ../smackx/ping package
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13394 b35dd754-fafc-0310-a699-88a17e54d16e
2013-01-15 19:56:25 +00:00
Florian Schmaus
8c14f0cb55 Added XEP-199 aka. "XMPP Ping" support to smack. Fixes SMACK-388.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13384 b35dd754-fafc-0310-a699-88a17e54d16e
2013-01-04 11:43:35 +00:00
Henning Staib
8b54f34153 merged branch improve_bytestreams in trunk
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11821 b35dd754-fafc-0310-a699-88a17e54d16e
2010-08-15 11:57:11 +00:00
guus
bcc1c55894 Adding support for XEP-0224: Attention (SMACK-296)
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11655 b35dd754-fafc-0310-a699-88a17e54d16e
2010-02-25 08:09:12 +00:00
guus
a86f45a4e6 Adds packetextension for nicknames (SMACK-285)
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11454 b35dd754-fafc-0310-a699-88a17e54d16e
2009-12-09 19:59:52 +00:00
rcollier
8dd8ec02a5 SMACK-272 Add support for XEP-0060 (pubsub)
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11350 b35dd754-fafc-0310-a699-88a17e54d16e
2009-10-28 22:54:49 +00:00
rcollier
f7a1c750ad SMACK-272 Add support for XEP-0060 (pubsub)
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11346 b35dd754-fafc-0310-a699-88a17e54d16e
2009-10-28 22:38:40 +00:00
Michael Will
a1e791172c disable the missing org.jivesoftware.smackx.workgroup.site package
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11331 b35dd754-fafc-0310-a699-88a17e54d16e
2009-10-26 15:04:18 +00:00
Michael Will
f943d27a3b SMACK-266 - Add provider for fastpath to smackx
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11022 b35dd754-fafc-0310-a699-88a17e54d16e
2009-06-04 08:48:06 +00:00
Gaston Dombiak
8d07e07379 Initial implementation of ad-hoc commands. SMACK-242
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@10453 b35dd754-fafc-0310-a699-88a17e54d16e
2008-05-28 18:59:52 +00:00
Gaston Dombiak
0b4006d394 Fixed way an inner class is being referenced.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6304 b35dd754-fafc-0310-a699-88a17e54d16e
2006-12-05 00:11:44 +00:00
Alex Wenckus
5658fb705a Code complete chat state manager
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6283 b35dd754-fafc-0310-a699-88a17e54d16e
2006-12-01 18:42:33 +00:00
Alex Wenckus
3269d65591 Initial work on ChatState.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6215 b35dd754-fafc-0310-a699-88a17e54d16e
2006-11-23 01:51:00 +00:00
Matt Tucker
47abf627b7 Added privacy list support and improved error handling from Francisco (SMACK-121, SMACK-31).
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@4603 b35dd754-fafc-0310-a699-88a17e54d16e
2006-07-19 19:24:00 +00:00
Gaston Dombiak
5247fce7ca Moved resource binding parsing as a core IQ packet. SMACK-124
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3492 b35dd754-fafc-0310-a699-88a17e54d16e
2006-02-27 18:17:27 +00:00
Alex Wenckus
8d0db1a339 File Transfer. (SMACK-72) (SMACK-122)
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3395 b35dd754-fafc-0310-a699-88a17e54d16e
2006-02-03 18:44:22 +00:00
Gaston Dombiak
5e8ee57446 Added MultipleAddressesProvider. SMACK-117
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3346 b35dd754-fafc-0310-a699-88a17e54d16e
2006-01-23 20:10:15 +00:00
Gaston Dombiak
bcae58878d Added SharedGroupInfo provider. SMACK-96
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2984 b35dd754-fafc-0310-a699-88a17e54d16e
2005-10-19 00:47:38 +00:00
Derek DeMoro
23bc043dc1 Adding multiple IQ for JEP 55 handling.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2830 b35dd754-fafc-0310-a699-88a17e54d16e
2005-09-16 23:04:30 +00:00
Derek DeMoro
c9c06bff78 Adding initial support for UserSearch(JEP-055).
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2828 b35dd754-fafc-0310-a699-88a17e54d16e
2005-09-16 16:35:15 +00:00
Derek DeMoro
44d3b0a08b Added Last Activity Support(JEP-012) to allow for retrieval of idle times.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2820 b35dd754-fafc-0310-a699-88a17e54d16e
2005-09-14 14:31:39 +00:00
Gaston Dombiak
335d2dd698 Added resource binding support. SMACK-77
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2723 b35dd754-fafc-0310-a699-88a17e54d16e
2005-08-27 00:00:58 +00:00
Gaston Dombiak
13b74c172e Added iqProvider and extensionProvider for flexible offline message retrieval. SMACK-25
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2513 b35dd754-fafc-0310-a699-88a17e54d16e
2005-07-26 04:58:28 +00:00
Gaston Dombiak
ee4ef91fec Added vCard provider. SMACK-58
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2509 b35dd754-fafc-0310-a699-88a17e54d16e
2005-07-19 22:58:41 +00:00
Gaston Dombiak
ea53ae6622 Added support for iq:version. SMACK-53
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2488 b35dd754-fafc-0310-a699-88a17e54d16e
2005-04-22 04:24:55 +00:00
Matt Tucker
1d42589443 Removed workgroup entries.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2460 b35dd754-fafc-0310-a699-88a17e54d16e
2005-02-13 21:38:59 +00:00
Gaston Dombiak
b6e862c0ee Added support for Delayed Delivery. SMACK-41
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2451 b35dd754-fafc-0310-a699-88a17e54d16e
2005-01-28 23:00:17 +00:00
Gaston Dombiak
81f4029d75 Changes package names of LA provider classes
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2377 b35dd754-fafc-0310-a699-88a17e54d16e
2004-09-10 21:39:26 +00:00
Matt Tucker
2aaccd0dec Added workgroup entries.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2368 b35dd754-fafc-0310-a699-88a17e54d16e
2004-08-16 00:56:42 +00:00
Gaston Dombiak
6596515785 Adds providers for DataForms and MUC
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2259 b35dd754-fafc-0310-a699-88a17e54d16e
2004-03-29 21:27:16 +00:00
Gaston Dombiak
943497731f Added disco support
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2142 b35dd754-fafc-0310-a699-88a17e54d16e
2003-10-13 23:10:15 +00:00
Matt Tucker
8e83a092db Added support for group chat invitations (SMACK-95).
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2135 b35dd754-fafc-0310-a699-88a17e54d16e
2003-10-12 04:40:08 +00:00
Bill Lynch
7666b4ac93 Moved from /resources
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2119 b35dd754-fafc-0310-a699-88a17e54d16e
2003-09-28 18:46:09 +00:00