bt747.model
Class ModelEvent

java.lang.Object
  extended by gps.GpsEvent
      extended by bt747.model.ModelEvent

public class ModelEvent
extends GpsEvent

Defines some events for the gps package.

Author:
Mario De Weerd, Florian Unger for indicated parts.

Field Summary
static int AGPS_UPLOAD_DONE
          Notifies a change in the AGPS upload (start/stop)
static int AGPS_UPLOAD_PERCENT
          Notifies a change in the AGPS advancement.
static int CONNECTED
           
static int CONVERSION_ENDED
           
static int CONVERSION_STARTED
           
static int DISCONNECTED
           
static int DOWNLOAD_METHOD_CHANGE
          Notifies a change in the download method setting.
static int FILE_LOG_FORMAT_UPDATE
           
static int INCREMENTAL_CHANGE
          Deprecated. Use DOWNLOAD_METHOD_CHANGE instead.
static int POS_SRV_FAILURE
          Indicates an event of failure to send data to the target server which need not necessarily have its reason in the configuration we use.
static int POS_SRV_FATAL_FAILURE
          Indicates an event of fatal failure to send data to the target sender.
static int POS_SRV_SUCCESS
          Indicates a successful sending of location data to a target server.
static int SETTING_CHANGE
          A setting changed - int param = index of changed setting
static int UPDATE_LOG_FILE_LIST
          For use by the application.
 
Fields inherited from class gps.GpsEvent
COULD_NOT_OPEN_FILE, DATA_UPDATE, DOWNLOAD_DATA_NOT_SAME_NEEDS_REPLY, DOWNLOAD_STATE_CHANGE, ERASE_DONE_REMOVE_POPUP, ERASE_ONGOING_NEED_POPUP, EXCEPTION, GPGGA, GPRMC, LOG_DOWNLOAD_DONE, LOG_DOWNLOAD_STARTED, LOG_DOWNLOAD_SUCCESS, UPDATE_BT_MAC_ADDR, UPDATE_DATUM, UPDATE_DGPS_MODE, UPDATE_FIX_PERIOD, UPDATE_FLASH_CONFIG, UPDATE_HOLUX_NAME, UPDATE_LOG_DISTANCE_INTERVAL, UPDATE_LOG_FLASH, UPDATE_LOG_FLASH_SECTORS, UPDATE_LOG_FORMAT, UPDATE_LOG_LOG_STATUS, UPDATE_LOG_MEM_USED, UPDATE_LOG_NBR_LOG_PTS, UPDATE_LOG_REC_METHOD, UPDATE_LOG_SPEED_INTERVAL, UPDATE_LOG_TIME_INTERVAL, UPDATE_LOG_VERSION, UPDATE_MTK_RELEASE, UPDATE_MTK_VERSION, UPDATE_OUTPUT_NMEA_PERIOD, UPDATE_PWR_SAV_MODE, UPDATE_SBAS, UPDATE_SBAS_TEST
 
Constructor Summary
ModelEvent(GpsEvent event)
           
ModelEvent(int type, java.lang.Object arg)
           
 
Method Summary
 
Methods inherited from class gps.GpsEvent
getArg, getType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONVERSION_STARTED

public static final int CONVERSION_STARTED
See Also:
Constant Field Values

CONVERSION_ENDED

public static final int CONVERSION_ENDED
See Also:
Constant Field Values

INCREMENTAL_CHANGE

public static final int INCREMENTAL_CHANGE
Deprecated. Use DOWNLOAD_METHOD_CHANGE instead.
See Also:
Constant Field Values

CONNECTED

public static final int CONNECTED
See Also:
Constant Field Values

DISCONNECTED

public static final int DISCONNECTED
See Also:
Constant Field Values

FILE_LOG_FORMAT_UPDATE

public static final int FILE_LOG_FORMAT_UPDATE
See Also:
Constant Field Values

SETTING_CHANGE

public static final int SETTING_CHANGE
A setting changed - int param = index of changed setting

See Also:
Constant Field Values

DOWNLOAD_METHOD_CHANGE

public static final int DOWNLOAD_METHOD_CHANGE
Notifies a change in the download method setting.

See Also:
Constant Field Values

UPDATE_LOG_FILE_LIST

public static final int UPDATE_LOG_FILE_LIST
For use by the application.

See Also:
Constant Field Values

AGPS_UPLOAD_DONE

public static final int AGPS_UPLOAD_DONE
Notifies a change in the AGPS upload (start/stop)

See Also:
Constant Field Values

AGPS_UPLOAD_PERCENT

public static final int AGPS_UPLOAD_PERCENT
Notifies a change in the AGPS advancement.

See Also:
Constant Field Values

POS_SRV_FATAL_FAILURE

public static final int POS_SRV_FATAL_FAILURE
Indicates an event of fatal failure to send data to the target sender.
This kind of event is exclusively sent by instances of LocationSender and should have the sending instance as second parameter.
author Florian Unger

See Also:
Constant Field Values

POS_SRV_FAILURE

public static final int POS_SRV_FAILURE
Indicates an event of failure to send data to the target server which need not necessarily have its reason in the configuration we use.
This kind of event is exclusively sent by instances of LocationSender and should have the sending instance as second parameter.
author Florian Unger

See Also:
Constant Field Values

POS_SRV_SUCCESS

public static final int POS_SRV_SUCCESS
Indicates a successful sending of location data to a target server.
This kind of event is exclusively sent by instances of LocationSender and should have the sending instance as second parameter.
author Florian Unger

See Also:
Constant Field Values
Constructor Detail

ModelEvent

public ModelEvent(int type,
                  java.lang.Object arg)

ModelEvent

public ModelEvent(GpsEvent event)