Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
|
Shows how you can directly interact with all configured devices. More...
Public Member Functions | |
DeviceSurveillance (IDeviceInfoProvider infoProv) | |
Requesting the device info provider via the constructor, not via "Helpers" - makes it easier to write tests for the plugin code. | |
void | DoYourJob () |
Will be triggered when the user clicks on the button. The button will be disabled until you return from here. | |
Public Member Functions inherited from AxelSemrau.Chronos.Plugin.IWorkWithSampleLists |
Properties | |
string | ButtonCaption [get] |
Shown on the sample list page. | |
Icon | ButtonIcon [get] |
Shown in the button, preferred size 22x22. | |
IEnumerable< IDevice > | ConfiguredDevices [set] |
List of IDevice for all configured devices in Chronos. | |
Properties inherited from AxelSemrau.Chronos.Plugin.IWorkWithSampleLists | |
Properties inherited from AxelSemrau.Chronos.Plugin.IDirectDeviceAccess |
Events | |
EventHandler< TraceWriteEventArgs > | TraceWrite |
Events inherited from AxelSemrau.Chronos.Plugin.ITraceLogger | |
EventHandler< TraceWriteEventArgs > | TraceWrite |
Chronos will subscribe to this event and log the text provided in the event args. | |
Private Member Functions | |
void | Trace (string txt) |
Private Attributes | |
readonly IDeviceInfoProvider | mDeviceInfoProvider |
Shows how you can directly interact with all configured devices.
This way of interacting is only for very rare scenarios - you should use IToolbox or ITaskForDevice for device access whenever possible.
Definition at line 17 of file DeviceSurveillance.cs.
MockPlugin.Device.DeviceSurveillance.DeviceSurveillance | ( | IDeviceInfoProvider | infoProv | ) |
Requesting the device info provider via the constructor, not via "Helpers" - makes it easier to write tests for the plugin code.
infoProv |
Definition at line 25 of file DeviceSurveillance.cs.
References MockPlugin.Device.DeviceSurveillance.mDeviceInfoProvider.
void MockPlugin.Device.DeviceSurveillance.DoYourJob | ( | ) |
Will be triggered when the user clicks on the button. The button will be disabled until you return from here.
Please note that this will not be run from the main GUI thread. If you have to do something on the GUI thread, use the Helpers.Gui members.
Implements AxelSemrau.Chronos.Plugin.IWorkWithSampleLists.
Definition at line 34 of file DeviceSurveillance.cs.
|
private |
Definition at line 63 of file DeviceSurveillance.cs.
References MockPlugin.Device.DeviceSurveillance.TraceWrite.
|
private |
Definition at line 19 of file DeviceSurveillance.cs.
Referenced by MockPlugin.Device.DeviceSurveillance.DeviceSurveillance().
|
get |
Shown on the sample list page.
You can update this using INotifyPropertyChanged.
Implements AxelSemrau.Chronos.Plugin.IWorkWithSampleLists.
Definition at line 32 of file DeviceSurveillance.cs.
|
get |
Shown in the button, preferred size 22x22.
You can update this using INotifyPropertyChanged.
Implements AxelSemrau.Chronos.Plugin.IWorkWithSampleLists.
Definition at line 33 of file DeviceSurveillance.cs.
|
set |
List of IDevice for all configured devices in Chronos.
Use with caution!
Implements AxelSemrau.Chronos.Plugin.IDirectDeviceAccess.
Definition at line 43 of file DeviceSurveillance.cs.
EventHandler<TraceWriteEventArgs> MockPlugin.Device.DeviceSurveillance.TraceWrite |
Definition at line 69 of file DeviceSurveillance.cs.
Referenced by MockPlugin.Device.DeviceSurveillance.Trace().