Class: VirtualBox::COM::Model::EventSource

Inherits:
NSISupports show all
Defined in:
lib/virtualbox/com/model/4.2.rb,
lib/virtualbox/com/model/4.1-generated.rb,
lib/virtualbox/com/model/4.2-generated.rb

Constant Summary collapse

MODEL_MAP =
{
    :machine_event                    => :MachineEvent,
    :snapshot_event                   => :SnapshotEvent,
    :on_machine_state_changed         => :MachineStateChangedEvent,
    :on_machine_data_changed          => :MachineDataChangedEvent,
    :on_extra_data_changed            => :ExtraDataChangedEvent,
    :on_extra_data_can_change         => :ExtraDataCanChangeEvent,
    :on_medium_registered             => :MediumRegisteredEvent,
    :on_machine_registered            => :MachineRegisteredEvent,
    :on_session_state_changed         => :SessionStateChangedEvent,
    :on_snapshot_taken                => :SnapshotTakenEvent,
    :on_snapshot_deleted              => :SnapshotDeletedEvent,
    :on_snapshot_changed              => :SnapshotChangedEvent,
    :on_guest_property_changed        => :GuestPropertyChangedEvent,
    :on_mouse_pointer_shape_changed   => :MousePointerShapEvent,
    :on_mouse_capability_changed      => :MouseCapabilityChangedEvent,
    :on_keyboard_leds_changed         => :KeyboardLedsChangedEvent,
    :on_state_changed                 => :StateChangedEvent,
    :on_additions_state_changed       => :AdditionsStateChangedEvent,
    :on_network_adapter_changed       => :NetworkAdapterChangedEvent,
    :on_serial_port_changed           => :SerialPortChangedEvent,
    :on_parallel_port_changed         => :ParallelPortChangedEvent,
    :on_storage_controller_changed    => :StorageControllerChangedEvent,
    :on_medium_changed                => :MediumChangedEvent,
    :on_vrde_server_changed           => :VRDEServerChangedEvent,
    :on_usb_controller_changed        => :USBControllerChangedEvent,
    :on_usb_device_state_changed      => :USBDeviceStateChangedEvent,
    :on_shared_folder_changed         => :SharedFolderChangedEvent,
    :on_runtime_error                 => :RuntimeErrorEvent,
    :on_can_show_window               => :CanShowWindowEvent,
    :on_show_window                   => :ShowWindowEvent,
    :on_cpu_changed                   => :CPUChangedEvent,
    :on_vrde_server_info_changed      => :VRDEServerInfoChangedEvent,
    :on_event_source_changed          => :EventSourceChangedEvent,
    :on_cpu_execution_cap_changed     => :CPUExecutionCapChangedEvent,
    :on_guest_keyboard                => :GuestKeyboardEvent,
    :on_guest_mouse                   => :GuestMouseEvent,
    :on_nat_redirect                  => :NATRedirectEvent,
    :on_host_pci_device_plug          => :HostPCIDevicePlugEvent,
    :on_vbox_svc_availability_changed => :VBoxSVCAvailabilityChangedEvent,
    :on_bandwidth_group_changed       => :BandwidthGroupChangedEvent,
    :on_guest_monitor_changed         => :GuestMonitorChangedEvent,
    :on_storage_device_changed        => :StorageDeviceChangedEvent,
    :on_clipboard_mode_changed        => :ClipboardModeChangedEvent,
    :on_drag_and_drop_mode_changed    => :DragAndDropModeChangedEvent,
}

Instance Attribute Summary

Attributes inherited from AbstractInterface

#implementer

Instance Method Summary collapse

Methods inherited from AbstractInterface

#cast, function, functions, #initialize, #inspect, member, members, properties, property

Methods inherited from AbstractModel

iid

Constructor Details

This class inherits a constructor from VirtualBox::COM::AbstractInterface

Instance Method Details

#get_casted_event(listener, timeout, enhanced = true) ⇒ Object



153
154
155
156
157
158
159
160
161
# File 'lib/virtualbox/com/model/4.2.rb', line 153

def get_casted_event(listener, timeout, enhanced = true)
    if evt = get_event(listener, timeout, false)
        if model = MODEL_MAP[evt.type]
            evt = evt.cast(model)
        end
        event_inject_processed(evt, listener) if enhanced
    end
    evt
end