CUE CueSiteManager Programmers User Manual

Page 24

Advertising
background image

24

Cue Site Manager / Programmer’s Manual / CSMDataProvider (driver)

© CUE, a.s. All Rights Reserved. | www.cuesystem.com | [email protected]

OnUserHelpRequestChange As Process (ishelprequest As Boolean)

OnUserMaintenanceRequestChange As Process (ismaintenancerequest As Boolean)

OnUserSecurityAlertChange As Process (issecurityalert As Boolean)

OnUserServiceRequestChange As Process (isservicerequest As Boolean)

Scope: Global
This events are raised each time given requests (alert) is changed (by functions SetUserHelpRequest,

SetUserServiceRequest, …, ClearUserHelpRequest, … or by remote clear of user requests from operator). In

parameter ishelprequest (isservicerequest, …) is boolean value, if user request is active or not. You can link

process to this event for example for displaying requests on touchpanel.

Example

Private Process

CSMDataProvider1_OnUserSecurityAlertChange( issecurityalert

As Boolean

)

Link

CSMDataProvider1.OnUserSecurityAlertChange

FullscreenWindow1.IndicatorAlert.SetValue(issecurityalert)

End Process

OnAttack As Process (fromipaddress As Text, fromport As Long)

Scope: Global
This event is generated, if somebody try to connect with CSMDataProvider driver and communication fails due

to wrong message format or wrong password. It is evaluated as potencial attack. IP address and incoming

port of attack are stored in parameters fromipaddress and fromport. You can use process linked to this event

for example for displaying info about potecial attack on touchpanel.

Example

Private Process

CSMDataProvider1_OnAttack( fromipaddress As Text, fromport As Long )

Link

CSMDataProvider1.OnAttack

Private Var

T

As Text

[100]

FormatText (T, “Potencial attack from IP address: {t}:{n}”, fromipaddress, fromport)
FullscreenWindow1.StaticTextAttack.SetText(T)

End Process

Advertising