GPS4Palm

Source Code Documentation


PortForm.c File Reference

#include <PalmOS.h>
#include <BtCommVdrv.h>
#include "ResourceDefines.h"
#include "PortForm.h"
#include "Utils.h"
#include "Serial.h"
#include "gpslib.h"
#include "common.h"

Include dependency graph for PortForm.c:

Go to the source code of this file.

Functions

Boolean PortFormHandleEvent (EventPtr eventP)
 Port Form event handler.

Variables

UInt16 gPortID
 Serial port ID.
PrefsType gPrefs
 Preferences data structure.
UInt32 gSerialPort
 four-character port name or logical port number (New Serial Manager)
Char ** gProfiles
 List of Connection Manager Profiles.
UInt16 gNumProfiles
 Number of Connection Manager Profiles.


Function Documentation

Boolean PortFormHandleEvent EventPtr  eventP  ) 
 

Port Form event handler.

Allows selection of connection profile. Available only with New Serial Manager.

Parameters:
eventP Pointer to event structure
Returns:
Status flag: event handled

Definition at line 138 of file PortForm.c.

References CantOpenSerialAlert, DoClose(), DoSetReceiveBuffer(), PrefsType::form, gCncManagerFtr, GetControlValueFromId, GetObjectFromActiveForm(), GetObjectFromForm(), gNumProfiles, gPortID, gPrefs, gProfiles, SerPrefsType::gps_baud, SerPrefsType::gps_btaddr, SerPrefsType::gps_port, GpslibSetSerialPort(), GPSPortList, GPSPortPopupTrigger, GPSPortRTSCtrlCheckbox, GPSPortUsePortButton, gSerialBuffer, gSerialPort, SerPrefsType::host_baud, SerPrefsType::host_port, HostPortList, HostPortPopupTrigger, NoProfileSelectedAlert, SerPrefsType::rts_ctrl, SerialInUseAlert, sermux_enable(), sermux_select(), and PrefsType::serprefs.


Variable Documentation

UInt16 gNumProfiles
 

Number of Connection Manager Profiles.

Definition at line 63 of file Serial.c.

UInt16 gPortID
 

Serial port ID.

Definition at line 54 of file Serial.c.

Referenced by ApproachFormHandleEvent(), DebugFormHandleEvent(), MainFormHandleEvent(), MapFormHandleEvent(), NavigationFormHandleEvent(), PortFormHandleEvent(), RouteFormHandleEvent(), sermux_enable(), sermux_select(), SkyviewFormHandleEvent(), TrackFormHandleEvent(), WaypointFormHandleEvent(), and WayptEditFormHandleEvent().

PrefsType gPrefs
 

Preferences data structure.

Definition at line 279 of file GPS.c.

Char** gProfiles
 

List of Connection Manager Profiles.

Definition at line 60 of file Serial.c.

UInt32 gSerialPort
 

four-character port name or logical port number (New Serial Manager)

Definition at line 57 of file Serial.c.


Created: Mon, 08 Oct 2007 22:33:16 +0200
Copyright ©2004 M. Prinke