1 18 19 package sync4j.syncclient.spds.event; 20 21 import java.util.Date ; 22 23 33 public class SyncSourceEvent { 34 35 37 38 public static final int SYNC_BEGIN = 0 ; 39 40 41 public static final int SYNC_END = 1 ; 42 43 45 private Date date = null ; 46 private String sourceUri = null ; 47 private int syncMode = 0 ; 48 private int type = 0 ; 49 50 52 60 public SyncSourceEvent(int type , 61 String sourceUri , 62 int syncMode , 63 long date ) { 64 65 this.type = type ; 66 this.sourceUri = sourceUri ; 67 this.syncMode = syncMode ; 68 this.date = new Date (date) ; 69 70 } 71 72 74 public Date getDate () { 75 return date; 76 } 77 78 public String getSourceUri () { 79 return sourceUri; 80 } 81 82 public int getSyncMode () { 83 return syncMode; 84 } 85 86 public int getType () { 87 return type; 88 } 89 90 public void setDate (Date date ) { 91 this.date = date; 92 } 93 94 public void setSourceUri (String sourceUri ) { 95 this.sourceUri = sourceUri; 96 } 97 98 public void setSyncMode (int syncMode ) { 99 this.syncMode = syncMode; 100 } 101 102 public void setType (int type ) { 103 this.type = type; 104 } 105 106 108 } | Popular Tags |