Rodiskmonitor – BrightSign Object Reference Manual (FW 5.1) User Manual

Page 145

Advertising
background image

137

roDiskMonitor

This object provides access to low-level information about disk errors. It provides an event-based interface that
delivers

roDiskErrorEvent

objects via roMessageport. Error messages are held for five seconds before delivery to

minimize the chance of spurious error reports. Errors are not reported if the disk is removed during this five second
interval because disk-removal detection takes several seconds. This allows for long-term monitoring of occasional media
errors.

This object uses the ifSetMessagePort interface to select the event destination.

Object Creation: The roDiskMonitor object is created with no parameters.

CreateObject("roDiskMonitor")

Interfaces: ifSetMessagePort, ifUserData

The ifSetMessagePort interface provides the following:

SetPort(a As Object)


The ifUserData interface provides the following:

SetUserData(user_data As Object): Sets the user data that will be returned when events are raised.

GetUserData() As Object: Returns the user data that has previously been set via SetUserData(). It will
return Invalid if no data has been set.


Example:
diskmon=CreateObject("roDiskMonitor")

Advertising