KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > framework > protocol > Flags


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.framework.protocol;
20
21 /**
22  * This interface grups flags used to drive the reading and the creations of
23  * syncml packages.
24  *
25  * @author Stefano Fornari @ Funambol
26  * @version $Id: Flags.java,v 1.4 2005/03/02 20:57:38 harrie Exp $
27  */

28 public interface Flags {
29     
30     public static int HOW_MANY_FLAGS = 6;
31     
32     /**
33      * Generic flags
34      */

35     public static int FLAG_ALL = -1;
36     public static int FLAG_ALL_RESPONSES_REQUIRED = -2;
37     
38     /**
39      * Specific flags
40      */

41     public static int FLAG_SYNC_RESPONSE_REQUIRED = 0;
42     public static int FLAG_MODIFICATIONS_RESPONSE_REQUIRED = 1;
43     public static int FLAG_SYNC_STATUS_REQUIRED = 2;
44     public static int FLAG_FINAL_MESSAGE = 3;
45     
46     /**
47      * should a deleted item be archived ?
48      */

49     public static int FLAG_ARCHIVE_DATA = 4;
50     
51     /**
52      * are deletions soft deletions?
53      */

54     public static int FLAG_SOFT_DELETE = 5;
55 }
Popular Tags