KickJava   Java API By Example, From Geeks To Geeks.

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


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  * when a item is added / updated / deleted
24  * by a command received from the server
25  * or when a item is added / updated / deleted
26  * on by the client
27  *
28  * @author Fabio Maggi
29  *
30  * @version $Id: SyncItemListener.java,v 1.2 2005/01/19 11:18:36 fabius Exp $
31  */

32 public interface SyncItemListener {
33
34     /**
35      * A new item is added on the client
36      *
37      * @param event
38      */

39     public void itemAddedByServer(SyncItemEvent event) ;
40
41     /**
42      * An item is deleted on the client
43      *
44      * @param event
45      */

46     public void itemDeletedByServer(SyncItemEvent event) ;
47
48     /**
49      * An item is updated on the client
50      *
51      * @param event
52      */

53     public void itemUpdatedByServer(SyncItemEvent event) ;
54
55     /**
56      * A new item is added by the client
57      *
58      * @param event
59      */

60     public void itemAddedByClient(SyncItemEvent event) ;
61
62     /**
63      * An item is deleted by the client
64      *
65      * @param event
66      */

67     public void itemDeletedByClient(SyncItemEvent event) ;
68
69     /**
70      * An item is updated by the client
71      *
72      * @param event
73      */

74     public void itemUpdatedByClient(SyncItemEvent event) ;
75
76 }
Popular Tags