00001 /* 00002 * ConnectionEvent.java 00003 * 00004 * Created on 14 giugno 2005, 21.46 00005 * 00006 * To change this template, choose Tools | Options and locate the template under 00007 * the Source Creation and Management node. Right-click the template and choose 00008 * Open. You can then make changes to the template in the Source Editor. 00009 */ 00010 00011 package org.jaebi.midlet.bt; 00012 00013 import javax.microedition.io.StreamConnection; 00014 00022 public class ConnectionEvent { 00023 00028 public static final int CONNECTION_ADDED = 0; 00029 public static final int CONNECTION_REMOVED = 1; 00030 00031 private int event; 00032 private StreamConnection conn; 00033 00035 public ConnectionEvent(int event, StreamConnection conn) { 00036 this.event = event; 00037 this.conn = conn; 00038 } 00039 00040 public int getEvent(){ 00041 return this.event; 00042 } 00043 00044 public StreamConnection getConnection(){ 00045 return this.conn; 00046 } 00047 00048 }