1 18 19 package sync4j.syncclient.spds.event; 20 21 import sync4j.syncclient.spds.engine.SyncItemKey; 22 23 34 public class SyncItemEvent { 35 36 38 39 public static final int ITEM_ADDED_BY_SERVER = 0 ; 40 41 42 public static final int ITEM_DELETED_BY_SERVER = 1 ; 43 44 45 public static final int ITEM_UPDATED_BY_SERVER = 2 ; 46 47 48 public static final int ITEM_ADDED_BY_CLIENT = 3 ; 49 50 51 public static final int ITEM_DELETED_BY_CLIENT = 4 ; 52 53 54 public static final int ITEM_UPDATED_BY_CLIENT = 5 ; 55 56 58 private SyncItemKey itemKey = null ; 59 private String sourceUri = null ; 60 private int type = 0 ; 61 62 64 71 public SyncItemEvent(int type , 72 String sourceUri , 73 SyncItemKey itemKey ) { 74 75 this.type = type ; 76 this.sourceUri = sourceUri ; 77 this.itemKey = itemKey ; 78 79 } 80 81 83 public SyncItemKey getItemKey () { 84 return itemKey; 85 } 86 87 public String getSourceUri () { 88 return sourceUri; 89 } 90 91 public int getType () { 92 return type; 93 } 94 95 public void setItemKey (SyncItemKey itemKey ) { 96 this.itemKey = itemKey ; 97 } 98 99 public void setSourceUri (String sourceUri ) { 100 this.sourceUri = sourceUri ; 101 } 102 103 public void setType (int type ) { 104 this.type = type ; 105 } 106 107 109 } | Popular Tags |