cec: sleep 5 ms in CUSBCECAdapterCommunication::Process() or other threads won't...
[deb_libcec.git] / src / cec-config-gui / actions / UpdateDeviceInfo.cs
1 using CecSharp;
2
3 namespace CecConfigGui.actions
4 {
5 class UpdateDeviceInfo : ShowDeviceInfo
6 {
7 public UpdateDeviceInfo(CecConfigGUI gui, ref LibCecSharp lib, DeviceInformation dialog) :
8 base(gui, ref lib, dialog.Address)
9 {
10 Dialog = dialog;
11 }
12
13 public override void ShowDialog(CecConfigGUI gui, CecLogicalAddress address, ref LibCecSharp lib,
14 bool devicePresent, CecVendorId vendor, bool isActiveSource, ushort physicalAddress,
15 CecVersion version, CecPowerStatus power, string osdName, string menuLanguage)
16 {
17 Dialog.Update(devicePresent, vendor, isActiveSource, physicalAddress, version, power, osdName, menuLanguage);
18 }
19
20 private DeviceInformation Dialog;
21 }
22 }