de.monarchy.guideme.data
Class PositionListener

java.lang.Object
  extended by de.monarchy.guideme.data.PositionListener

public class PositionListener
extends java.lang.Object

PositionListener is an internal class implementing interfaces for sensor and location events. It is bound to a PL service and feeds it with information about changes in location and orientation. Its only purpose is to work as an adapter class.

Author:
dstuerze

Constructor Summary
PositionListener(PersonalLocation p)
          Creates a new listener object for this particular PersonalLocation.
 
Method Summary
 void onAccuracyChanged(Sensor arg0, int arg1)
           
 void onLocationChanged(Location arg0)
           
 void onProviderDisabled(java.lang.String arg0)
           
 void onProviderEnabled(java.lang.String arg0)
           
 void onSensorChanged(SensorEvent event)
           
 void onStatusChanged(java.lang.String arg0, int arg1, Bundle arg2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PositionListener

public PositionListener(PersonalLocation p)
Creates a new listener object for this particular PersonalLocation.

Parameters:
p - service the listener is applied to
Method Detail

onAccuracyChanged

public void onAccuracyChanged(Sensor arg0,
                              int arg1)

onSensorChanged

public void onSensorChanged(SensorEvent event)

onLocationChanged

public void onLocationChanged(Location arg0)

onProviderDisabled

public void onProviderDisabled(java.lang.String arg0)

onProviderEnabled

public void onProviderEnabled(java.lang.String arg0)

onStatusChanged

public void onStatusChanged(java.lang.String arg0,
                            int arg1,
                            Bundle arg2)