1 18 19 package sync4j.syncclient.spds.event; 20 21 import sync4j.syncclient.spds.engine.SyncItemKey; 22 23 31 public class SyncStatusEvent { 32 33 35 36 public static final int STATUS_TO_SEND = 0 ; 37 38 39 public static final int STATUS_RECEIVED = 1 ; 40 41 42 44 private int type = 0 ; 45 private String command = null ; 46 private int statusCode = 0 ; 47 private SyncItemKey itemKey = null ; 48 private String sourceUri = null ; 49 50 52 61 public SyncStatusEvent(int type , 62 String command , 63 int statusCode , 64 SyncItemKey itemKey , 65 String sourceUri ) { 66 67 this.type = type ; 68 this.command = command ; 69 this.statusCode = statusCode ; 70 this.itemKey = itemKey ; 71 this.sourceUri = sourceUri ; 72 73 } 74 75 77 public int getType () { 78 return type; 79 } 80 81 public String getCommand () { 82 return command; 83 } 84 85 public SyncItemKey getItemKey () { 86 return itemKey; 87 } 88 89 public String getSourceUri () { 90 return sourceUri; 91 } 92 93 public int getStatusCode () { 94 return statusCode; 95 } 96 97 98 public void setType (int type ) { 99 this.type = type ; 100 } 101 102 public void setCommand (String command ) { 103 this.command = command ; 104 } 105 106 public void setItemKey (SyncItemKey itemKey ) { 107 this.itemKey = itemKey ; 108 } 109 110 public void setSourceUri (String sourceUri ) { 111 this.sourceUri = sourceUri ; 112 } 113 114 public void setStatusCode (int statusCode ) { 115 this.statusCode = statusCode ; 116 } 117 118 120 } | Popular Tags |