KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > syncclient > spds > event > SyncTransportListener


1 /**
2  * Copyright (C) 2003-2005 Funambol
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18
19 package sync4j.syncclient.spds.event;
20
21 /**
22  * Is used to notify
23  * of the sending of data to the server
24  * and of the reception of data from the server.
25  *
26  * @author Fabio Maggi
27  *
28  * @version $Id: SyncTransportListener.java,v 1.2 2005/01/19 11:18:36 fabius Exp $
29  */

30 public interface SyncTransportListener {
31
32     /**
33      * Engine started to send data to the server
34      *
35      * @param event
36      */

37     public void sendDataBegin(SyncTransportEvent event) ;
38
39     /**
40      * Engine has sent all data to the server
41      *
42      * @param event
43      */

44     public void sendDataEnd(SyncTransportEvent event) ;
45
46     /**
47      * Engine started to receive data from the server
48      *
49      * @param event
50      */

51     public void receiveDataBegin(SyncTransportEvent event) ;
52
53     /**
54      * Engine has received all data from the server
55      *
56      * @param event
57      */

58     public void dataReceived(SyncTransportEvent event) ;
59
60     /**
61      * Engine is receiving data from the server
62      *
63      * @param event
64      */

65     public void receiveDataEnd(SyncTransportEvent event) ;
66
67 }
Popular Tags