Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lipstick] Add busy notifications for usb-mode selection. Contributes…
… to JB#44479 Plugging in USB PC connection can result in a USB mode selection box (e.g. showing Developer mode, Media transfer (MTP) Charging only). Selecting some options (e.g. MTP) can result in a delay while the connection is set up. Currently there's no indication that anything is happening while the connection is being established. This change adds a periodic notification and animation to highlight to the user that their request hasn't been ignored. It includes the following changes: 1. Tied the charging notification logic to USB mode selection. Previously the "Charging..." notification would overlap the USB selection dialog, risking a dangerous information overload scenario. This change delays the charging notification until after the user has selected a USB mode option. This bends the truth a little, because the phone will actually be charging even while the dialog is visible, but hopefully this provides an overall better experience for the user. 2. Refactored to move code from lipstick-qt5 to lipstick-jolla-home and improve the separation between lipstick middleware and the lipstick application layer. 3. Updated to use new target property from QUsbModed. 4. Untangled the QUsbModed events and modes for clarity, so they're now handled seperately, rather than being streamed together. 5. Switched internally used slots to private methods. 6. Renamed some properties and methods to remove duplicate reference to USB, for example from USBModeSelector::setUSBMode() to USBModeSelector::setMode(). 7. Require libusb-moded-qt5 >= 1.8 for building. This version is needed to allow access to the target property.
- Loading branch information