Code Search for Developers
 
 
  

BTListener.java from GridBlocks at Krugle


Show BTListener.java syntax highlighted

/*
 * Copyright (c) 2005 
 * Helsinki Institute of Physics
 * see LICENSE file for details
 *
 * BTListener.java
 * Created on Mar 7, 2004
 */

package fi.hip.gb.bluetooth;

/**
 * Interface for bluetooth callbacks.
 * <p>
 * Implementation of this interface will handle bluetooth network event.
 */
public interface BTListener {
    /** a bluetooth device was discoved, it might not have GBAgent services */
    public final static String EVENT_DISCOVERED = "discovered";
    /** found a compatible device with a GBAgent service */
    public final static String EVENT_COMPATIBLE = "compatible";
    /** a bluetooth device has been lost */
    public final static String EVENT_LOST = "lost";
    /** a connection has been established */
    public final static String EVENT_JOIN = "join";
    /** a connection has been closed, but the device still exists */
    public final static String EVENT_LEAVE = "leave";
    /** a message has been received */
    public final static String EVENT_RECEIVED = "received";
    /** a message has been sended */
    public final static String EVENT_SENT = "sent";

    /** device discovery operation is finished */
    public final static String EVENT_FINISHED = "finished";
    /** starting discovery of services */
    public final static String EVENT_SERVICES = "services";
  
  /**
   * Network activity action handler.
   * @param action must be one of EVENT_XXX fields
   * @param endpt the <code>EntPoint</code> object that correspond to the action
   * @param data the <code>LiteStorage</code> object that contains the transfered data
   * or is null
   */
  public void handleAction( String action, EndPoint endpt, Object data);
  
  /**
   * Log message from the bluetooth implementation.
   * @param message log message
   */
  public void log(String message);
}



See more files for this project here

GridBlocks

GridBlocks builds a grid application framework via easy-to-use building blocks in distributed environment. The framework offers components for Grid security, distributed storage, computing, and Portlet web interfaces.

Project homepage: http://sourceforge.net/projects/gridblocks
Programming language(s): Java,JSP,XML
License: other

  coordconv/
    LatitudeLongitude.java
  util/
    Properties.java
    StringTokenizer.java
  AgentService.java
  BTListener.java
  BTService.java
  EndPoint.java
  GPSResult.java
  NmeaService.java
  Service.java
  Util.java