6#ifndef __PORTSMODEL_PORT_IDL__
7#define __PORTSMODEL_PORT_IDL__
10#include <PortFuse.idl>
11#include <PosElement.idl>
22 constant
int NO_ERROR = 0;
23 constant
int ERR_INVALID_PARAM = 1;
24 constant
int ERR_DEVICE_BUSY = 2;
34 [unknown_fallback(
"OTHER")]
Interface describing a controllable fuse for a device port.
Object getDeviceConfig(in string deviceType)
Get device type specific configuration interface.
DetectionType
Port detection type.
@ PINNED
port is pinned to a specific device type
@ AUTO
auto detection of connected devices
DeviceTypeId
devices types that may be connected to port
@ UNSPECIFIED
not specified, means "not detected" in Properties::detectedDeviceTypeId
@ OTHER
other types, not listet below
Object getDevice()
Get the connected device of the port.
void setName(in string name)
NOT USED RIGHT NOW!
int setDetectionMode(in DetectionMode mode)
Set the detection mode for the port.
vector< string > getDetectableDevices()
Get all detectable devices of this port.
Properties getProperties()
Get the current properties of the port.
PortFuse getFuse()
Get the fuse for this port.
Common base for all events.
peripheral device position element, list forms position
string pinnedDeviceType
contains specific device type in pinned mode, not used for auto
DetectionType type
detection type: auto or pinned
Event: The device connected to the port has changed.
Object oldDevice
Connected device before change.
Object newDevice
Connected device after change.
string type
device type string
DeviceTypeId id
device type ID
Event: The port properties have changed.
Properties newProperties
Properties after change.
Properties oldProperties
Properties before change.
string topoId
short id depending on position, e.g. 'REMOTE-HUB-1' or 'USB-2-1-4'
DetectionMode mode
detection mode
DeviceTypeId detectedDeviceTypeId
detected device type ID or UNSPECIFIED if nothing connected
string serialId
serial number of device, e.g. for USB Dongle, maybe empty
peripheral::PortType portType
machine-readable port type information
vector< peripheral::PosElement > position
full machine-readable position information
string label
label on device
string detectedDeviceType
detected device type or empty if nothing connected
string name
user defineable name - NOT USED RIGHT NOW!
vector< DeviceTypeWithId > detectableDeviceTypes
all detectable devices of this port as ID-string pairs
DeviceTypeId pinnedDeviceTypeId
contains specific device type ID in pinned mode, or UNSPECIFIED if not pinned
string detectedDeviceName
detected device name or empty if nothing connected