Routines for ema_eadf.kb


EADefaultsCreateDialog

File Name

ema_eadf.kb

Syntax

EADefaultsCreateDialog( VAL parentWindow:WINDOW, VAL modalBox:BOOLEAN );

Parameters

parentWindow - window handle of the parent for a new dialog box

modalBox - true/false on whether the box is modal or not

Returns

2 = already up

1 = success

0 = failed to call Init

Side Effects

None

Description

This function creates a dialog box of type EADef.

Dialog Forms Called

None


EADefaultsDestroyDialog

File Name

ema_eadf.kb

Syntax

EADefaultsDestroyDialog;

Parameters

None

Returns

1 = success

0 = failure

Side Effects

None

Description

This function destroys the dialog box.

Dialog Forms Called

None


EADefaultsDlgRestoreData

File Name

ema_eadf.kb

Syntax

EADefaultsDlgRestoreData(REF eaDefData:EADefDataRec);

Parameters

eaDefData - data return value

Returns

1 = success

0 = failure

Side Effects

None

Description

This function restores the dialog box data associated with this module from a file or database.

Dialog Forms Called

None


EADefaultsEnableControls

File Name

ema_eadf.kb

Syntax

EADefaultsEnableControls( VAL enableControls:BOOLEAN, VAL msgString:STRING );

Parameters

enableControls - TRUE (enable) or FALSE (disable)

msgString - string to write to the message line in the box (if there is one).

Nothing is written if this is $Unknown.

Returns

1 = success

0 = failure

Side Effects

None

Description

This function enables or disables user controls and outputs a string to the message line (if there is one).

Dialog Forms Called

None


EADefaultsEventHandler

File Name

ema_eadf.kb

Syntax

EADefaultsEventHandler(REF eaDefDlgData:EADefDlgDataRec);

Parameters

eaDefDlgData - the instance data for this dialog box type

Returns

1 = success

0 = failure

Side Effects

None

Description

This routine provides event handling for the EADef dialog box.

Dialog Forms Called

None


EADefaultsGetData

File Name

ema_eadf.kb

Syntax

EADefaultsGetData( REF eaDefData:EADefDataRec );

Parameters

eaDefData - data return value

Returns

1 = success

0 = failure

Side Effects

None

Description

This function gets the dialog box data associated with this module.

Dialog Forms Called

None


EADefaultsInitData

File Name

ema_eadf.kb

Syntax

EADefaultsInitData;

Parameters

None

Returns

1 = success

0 = failure

Side Effects

None

Description

This function initializes the module data structure with information in the external data store.

Dialog Forms Called

None


EADefaultsRefreshLists

File Name

ema_eadf.kb

Syntax

EADefaultsRefreshLists;

Parameters

None

Returns

1 = success

Side Effects

None

Description

This function refreshes the severity, call code, and system lists with current values from the TPM database.

Dialog Forms Called

None


EADefaultsSaveData

File Name

ema_eadf.kb

Syntax

EADefaultsSaveData;

Parameters

None

Returns

1 = success

0 = failure

Side Effects

None

Description

This function saves the dialog box data associated with this module in a file or database.

Dialog Forms Called

None


EADefaultsSetData

File Name

ema_eadf.kb

Syntax

EADefaultsSetData( REF eaDefData:EADefDataRec );

Parameters

eaDefData - data return value

Returns

1 = success

0 = failure

Side Effects

None

Description

This function sets the dialog box data associated with this module.

Dialog Forms Called

None


EADefaultsShutDown

File Name

ema_eadf.kb

Syntax

EADefaultsShutDown( VAL callerStatus:INTEGER );

Parameters

callerStatus - caller's shutdown status.

Returns

1 = success

0 = failure

Side Effects

None

Description

This function performs the final operations for this module in the expectation that the calling application is shutting down. If caller is closing down due to internal problems, then this module should probably abort.

Dialog Forms Called

None


EADefaultsValidateEntries

File Name

ema_eadf.kb

Syntax

EADefaultsValidateEntries(REF dlgData:EADefDlgDataRec );

Parameters

dlgData - data return value

Returns

1 = success

Side Effects

None

Description

This function validates the various TPM defaults data entries with current values in the TPM database.

Dialog Forms Called

None


ModuleTestEventHandler

File Name

ema_eadf.kb

Syntax

ModuleTestEventHandler( REF ModuleTestData: ModuleTestRec );

Parameters

ModuleTestData - instance data for this dialog box type

Returns

1 = success

0 = failure

Side Effects

None

Description

This routine provides event handling for the ModuleTest dialog box.

Dialog Forms Called

None


PerformSelectAction

File Name

ema_eadf.kb

Syntax

PerformSelectAction(REF eaDefDlgData:EADefDlgDataRec);

Parameters

eaDefDlgData - the instance data for this window

Returns

1 = success

0 = failure (refuse the select)

Side Effects

None

Description

This routine performs actions for controls in the Configuration dialog box. It consists of enabling dialog controls based on new values and checking the validity of the user's field value. Note: This routine is called within the scope of the event handler so that the code can get access to the EventParms.

Dialog Forms Called

None


TestThisModule

File Name

ema_eadf.kb

Syntax

TestThisModule( VAL args:LIST OF STRING );

Parameters

args - command line argument list

Returns

Nothing

Side Effects

None

Description

This routine provides a simple GUI interface to test the callable routines in this module.

Dialog Forms Called

None


TransferAttribsToModuleRec

File Name

ema_eadf.kb

Syntax

TransferAttribsToModuleRec(VAL eaDefAttribList:LIST OF DBDialogAttribRec);

Parameters

eaDefAttribList - data return value

Returns

1 = success

0 = failure

Side Effects

None

Description

This function transfers the database attributes list to the module data structure.

Dialog Forms Called

None


TransferModuleRecToAttribs

File Name

ema_eadf.kb

Syntax

TransferModuleRecToAttribs(VAL eaDefAttribList:LIST OF DBDialogAttribRec);

Parameters

eaDefAttribList - data return value

Returns

1 = success

0 = failure

Side Effects

None

Description

This function transfers the module data structure contents attributes list for transmission to the database.

Dialog Forms Called

None