gps
Class GpsEvent

java.lang.Object
  extended by gps.GpsEvent
Direct Known Subclasses:
ModelEvent

public class GpsEvent
extends java.lang.Object

Event implementation for signaling the application.

Author:
Mario De Weerd

Field Summary
static int COULD_NOT_OPEN_FILE
           
static int DATA_UPDATE
          Indicates GPS data is available.
static int DOWNLOAD_DATA_NOT_SAME_NEEDS_REPLY
          A log download was initiated.
static int DOWNLOAD_STATE_CHANGE
          Indicates that there was some progress of the download - the application can update its progress bar.
static int ERASE_DONE_REMOVE_POPUP
          The erase cycle ended.
static int ERASE_ONGOING_NEED_POPUP
          An erase started.
static int EXCEPTION
          An exception has been thrown.
static int GPGGA
          GPGGA string received.
static int GPRMC
          GPRMC string received.
static int LOG_DOWNLOAD_DONE
          Indicates the log download has finished.
static int LOG_DOWNLOAD_STARTED
          Indicates that the log download has started.
static int LOG_DOWNLOAD_SUCCESS
           
static int UPDATE_BT_MAC_ADDR
          The Bluetooth mac address is available.
static int UPDATE_DATUM
          The used GPS DATUM is available or updated.
static int UPDATE_DGPS_MODE
          dgpsMode update notification.
static int UPDATE_FIX_PERIOD
          logFixPeriod update notification.
static int UPDATE_FLASH_CONFIG
          Indicates flash configuration data is available.
static int UPDATE_HOLUX_NAME
          Indicates the Holux Name is available.
static int UPDATE_LOG_DISTANCE_INTERVAL
          logDistanceInterval update notification.
static int UPDATE_LOG_FLASH
          flashManuProdID update notification.
static int UPDATE_LOG_FLASH_SECTORS
          Flash sector status update notification.
static int UPDATE_LOG_FORMAT
          logFormat update notification.
static int UPDATE_LOG_LOG_STATUS
          logStatus, loggingActive, loggerIsFull, loggerNeedsInit, loggerIsDisabled update notification.
static int UPDATE_LOG_MEM_USED
          logMemUsedPercent update notification.
static int UPDATE_LOG_NBR_LOG_PTS
          logNbrLogPts update notification.
static int UPDATE_LOG_REC_METHOD
          logFullOverwrite update notification.
static int UPDATE_LOG_SPEED_INTERVAL
          logSpeedInterval update notification.
static int UPDATE_LOG_TIME_INTERVAL
          logTimeInterval update notification.
static int UPDATE_LOG_VERSION
          MtkLogVersion update notification.
static int UPDATE_MTK_RELEASE
          The release of the MTK chipset is available.
static int UPDATE_MTK_VERSION
          The version of the MTK chipset is available.
static int UPDATE_OUTPUT_NMEA_PERIOD
          NMEA periods update notification.
static int UPDATE_PWR_SAV_MODE
          The Power Save Mode is available or updated.
static int UPDATE_SBAS
          SBASEnabled update notification
static int UPDATE_SBAS_TEST
          SBASTestEnabled update notification
 
Constructor Summary
GpsEvent(int type)
          Constructor of new Event with given type and no argument.
GpsEvent(int type, java.lang.Object arg)
          Constructor of new Event with given type and argument.
 
Method Summary
 java.lang.Object getArg()
          Get the event's argument.
 int getType()
          Get the event's type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UPDATE_LOG_FORMAT

public static final int UPDATE_LOG_FORMAT
logFormat update notification.

See Also:
Constant Field Values

GPRMC

public static final int GPRMC
GPRMC string received. Event argument has GPSRecord data.

See Also:
Constant Field Values

GPGGA

public static final int GPGGA
GPGGA string received. Event argument has GPSRecord data.

See Also:
Constant Field Values

LOG_DOWNLOAD_STARTED

public static final int LOG_DOWNLOAD_STARTED
Indicates that the log download has started.

See Also:
Constant Field Values

DOWNLOAD_STATE_CHANGE

public static final int DOWNLOAD_STATE_CHANGE
Indicates that there was some progress of the download - the application can update its progress bar.

See Also:
Constant Field Values

LOG_DOWNLOAD_DONE

public static final int LOG_DOWNLOAD_DONE
Indicates the log download has finished.

See Also:
Constant Field Values

DOWNLOAD_DATA_NOT_SAME_NEEDS_REPLY

public static final int DOWNLOAD_DATA_NOT_SAME_NEEDS_REPLY
A log download was initiated. An incremental download was selected and data was already present but does not correspond to the data currently in the device. The application should request user confirmation to overwrite this data and respond with Controller.replyToOkToOverwrite(boolean).

See Also:
Constant Field Values

ERASE_ONGOING_NEED_POPUP

public static final int ERASE_ONGOING_NEED_POPUP
An erase started. The application should show a popup during the erase.

See Also:
Constant Field Values

ERASE_DONE_REMOVE_POPUP

public static final int ERASE_DONE_REMOVE_POPUP
The erase cycle ended. The application should remove the erase popup.

See Also:
Constant Field Values

COULD_NOT_OPEN_FILE

public static final int COULD_NOT_OPEN_FILE
See Also:
Constant Field Values

UPDATE_FIX_PERIOD

public static final int UPDATE_FIX_PERIOD
logFixPeriod update notification.

See Also:
MtkModel.getLogFixPeriod(), Constant Field Values

LOG_DOWNLOAD_SUCCESS

public static final int LOG_DOWNLOAD_SUCCESS
See Also:
Constant Field Values

UPDATE_OUTPUT_NMEA_PERIOD

public static final int UPDATE_OUTPUT_NMEA_PERIOD
NMEA periods update notification.

See Also:
Constant Field Values

UPDATE_FLASH_CONFIG

public static final int UPDATE_FLASH_CONFIG
Indicates flash configuration data is available.
dtUserOptionTimesLeft , dtUpdateRate , dtBaudRate , dtGLL_Period , dtRMC_Period , dtVTG_Period , dtGSA_Period , dtGSV_Period , dtGGA_Period , dtZDA_Period , dtMCHN_Period ,

See Also:
Constant Field Values

UPDATE_HOLUX_NAME

public static final int UPDATE_HOLUX_NAME
Indicates the Holux Name is available.

See Also:
Constant Field Values

UPDATE_LOG_TIME_INTERVAL

public static final int UPDATE_LOG_TIME_INTERVAL
logTimeInterval update notification.

See Also:
Constant Field Values

UPDATE_LOG_SPEED_INTERVAL

public static final int UPDATE_LOG_SPEED_INTERVAL
logSpeedInterval update notification.

See Also:
Constant Field Values

UPDATE_LOG_DISTANCE_INTERVAL

public static final int UPDATE_LOG_DISTANCE_INTERVAL
logDistanceInterval update notification.

See Also:
Constant Field Values

UPDATE_LOG_MEM_USED

public static final int UPDATE_LOG_MEM_USED
logMemUsedPercent update notification.

See Also:
Constant Field Values

UPDATE_LOG_FLASH

public static final int UPDATE_LOG_FLASH
flashManuProdID update notification.

See Also:
Constant Field Values

UPDATE_LOG_NBR_LOG_PTS

public static final int UPDATE_LOG_NBR_LOG_PTS
logNbrLogPts update notification.

See Also:
Constant Field Values

UPDATE_LOG_FLASH_SECTORS

public static final int UPDATE_LOG_FLASH_SECTORS
Flash sector status update notification.

See Also:
Constant Field Values

UPDATE_LOG_VERSION

public static final int UPDATE_LOG_VERSION
MtkLogVersion update notification.

See Also:
Constant Field Values

UPDATE_LOG_REC_METHOD

public static final int UPDATE_LOG_REC_METHOD
logFullOverwrite update notification.

See Also:
Constant Field Values

UPDATE_LOG_LOG_STATUS

public static final int UPDATE_LOG_LOG_STATUS
logStatus, loggingActive, loggerIsFull, loggerNeedsInit, loggerIsDisabled update notification.

See Also:
MtkModel.isLoggingActive(), Constant Field Values

UPDATE_DGPS_MODE

public static final int UPDATE_DGPS_MODE
dgpsMode update notification.

See Also:
Constant Field Values

UPDATE_SBAS

public static final int UPDATE_SBAS
SBASEnabled update notification

See Also:
Constant Field Values

UPDATE_SBAS_TEST

public static final int UPDATE_SBAS_TEST
SBASTestEnabled update notification

See Also:
Constant Field Values

UPDATE_PWR_SAV_MODE

public static final int UPDATE_PWR_SAV_MODE
The Power Save Mode is available or updated.

See Also:
Constant Field Values

UPDATE_DATUM

public static final int UPDATE_DATUM
The used GPS DATUM is available or updated.

See Also:
Constant Field Values

UPDATE_BT_MAC_ADDR

public static final int UPDATE_BT_MAC_ADDR
The Bluetooth mac address is available.

See Also:
Constant Field Values

UPDATE_MTK_VERSION

public static final int UPDATE_MTK_VERSION
The version of the MTK chipset is available. (mainVersion)

See Also:
Constant Field Values

UPDATE_MTK_RELEASE

public static final int UPDATE_MTK_RELEASE
The release of the MTK chipset is available. (firmwareVersion, model, device)

See Also:
Constant Field Values

DATA_UPDATE

public static final int DATA_UPDATE
Indicates GPS data is available.
The argument is a BT747Int identifying the data type.

See Also:
Constant Field Values

EXCEPTION

public static final int EXCEPTION
An exception has been thrown. The parameter must be a BT747Exception.

See Also:
Constant Field Values
Constructor Detail

GpsEvent

public GpsEvent(int type)
Constructor of new Event with given type and no argument.

Parameters:
type - Type of event.

GpsEvent

public GpsEvent(int type,
                java.lang.Object arg)
Constructor of new Event with given type and argument.

Parameters:
type - Type number.
arg - Argument.
Method Detail

getType

public final int getType()
Get the event's type.

Returns:
event type.

getArg

public final java.lang.Object getArg()
Get the event's argument.

Returns:
event argument. 'null' if no argument.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object