void CPeripherals::OnDeviceAdded(const CPeripheralBus &bus, const CPeripheral &peripheral) { OnDeviceChanged(); // don't show a notification for devices detected during the initial scan if (bus.IsInitialised()) CGUIDialogKaiToast::QueueNotification(CGUIDialogKaiToast::Info, g_localizeStrings.Get(35005), peripheral.DeviceName()); }
void CPeripherals::OnDeviceAdded(const CPeripheralBus &bus, const CPeripheral &peripheral) { CGUIDialogPeripheralManager *dialog = (CGUIDialogPeripheralManager *)g_windowManager.GetWindow(WINDOW_DIALOG_PERIPHERAL_MANAGER); if (dialog && dialog->IsActive()) dialog->Update(); // refresh settings (peripherals manager could be enabled now) CGUIMessage msg(GUI_MSG_UPDATE, WINDOW_SETTINGS_SYSTEM, 0); g_windowManager.SendThreadMessage(msg, WINDOW_SETTINGS_SYSTEM); SetChanged(); // don't show a notification for devices detected during the initial scan if (bus.IsInitialised()) CGUIDialogKaiToast::QueueNotification(CGUIDialogKaiToast::Info, g_localizeStrings.Get(35005), peripheral.DeviceName()); }
void CPeripherals::OnDeviceAdded(const CPeripheralBus &bus, const CPeripheral &peripheral) { OnDeviceChanged(); //! @todo Improve device notifications in v18 #if 0 bool bNotify = true; // don't show a notification for devices detected during the initial scan if (!bus.IsInitialised()) bNotify = false; if (bNotify) CGUIDialogKaiToast::QueueNotification(CGUIDialogKaiToast::Info, g_localizeStrings.Get(35005), peripheral.DeviceName()); #endif }
void CPeripherals::OnDeviceAdded(const CPeripheralBus &bus, const CPeripheral &peripheral) { OnDeviceChanged(); bool bNotify = true; // don't show a notification for devices detected during the initial scan if (!bus.IsInitialised()) bNotify = false; // don't show a notification for emulated peripherals if (peripheral.Type() == PERIPHERAL_JOYSTICK_EMULATION) //! @todo Change to peripheral.IsEmulated() bNotify = false; if (bNotify) CGUIDialogKaiToast::QueueNotification(CGUIDialogKaiToast::Info, g_localizeStrings.Get(35005), peripheral.DeviceName()); }