de.knup.jedi.jayshare
Interface JayPacketListener

All Known Implementing Classes:
CommunicationThread

public interface JayPacketListener

Background communication handler interface. A JayPacketListener has to react to a couple of incoming events.

Version:
0.3 $Revision: 1.7 $
Author:
B. Pietsch

Method Summary
 void getAvailable(JID from)
          A new user got available.
 void getCapability(JID from, Capability packet)
          A user sent you its clients capability.
 void getListModification(JID from, ListModification packet)
          A user sent you its list modification timestamp.
 void getListReply(JID from, ListReply packet)
          A user sent you its export list.
 void getListRequest(JID from, ListRequest packet)
          A user requests your export list.
 void getServiceReply(JID from, ServiceReply packet)
          A user answered your service request.
 void getServiceRequest(JID from, ServiceRequest packet)
          A user requests your service information.
 void getUnavailable(JID from)
          A user dropped.
 

Method Detail

getAvailable

public void getAvailable(JID from)
A new user got available.
Parameters:
from - is the ariving user.

getUnavailable

public void getUnavailable(JID from)
A user dropped.
Parameters:
from - is the leaving user.

getListModification

public void getListModification(JID from,
                                ListModification packet)
A user sent you its list modification timestamp.
Parameters:
from - is the user.
packet - is the list modification timestamp.

getCapability

public void getCapability(JID from,
                          Capability packet)
A user sent you its clients capability.
Parameters:
from - is the user.
packet - is the capability record.

getListRequest

public void getListRequest(JID from,
                           ListRequest packet)
A user requests your export list.
Parameters:
is - the requesting user.
packet - is an empty packet.

getListReply

public void getListReply(JID from,
                         ListReply packet)
A user sent you its export list.
Parameters:
from - is the user.
packet - is the export list.

getServiceRequest

public void getServiceRequest(JID from,
                              ServiceRequest packet)
A user requests your service information.
Parameters:
from - is the requesting user.
packet - is an empty packet.

getServiceReply

public void getServiceReply(JID from,
                            ServiceReply packet)
A user answered your service request.
Parameters:
from - is the user.
packet - is the service information.