Merge lp:~mterry/ubuntu-system-settings/check-both-sims into lp:ubuntu-system-settings
Status: | Merged |
---|---|
Approved by: | Ken VanDine |
Approved revision: | 875 |
Merged at revision: | 910 |
Proposed branch: | lp:~mterry/ubuntu-system-settings/check-both-sims |
Merge into: | lp:ubuntu-system-settings |
Diff against target: |
32 lines (+11/-4) 1 file modified
wizard/qml/Pages/10-welcome.qml (+11/-4) |
To merge this branch: | bzr merge lp:~mterry/ubuntu-system-settings/check-both-sims |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Approve | |
Ken VanDine | Approve | ||
Review via email: mp+229991@code.launchpad.net |
Commit message
Make the wizard properly handle devices with zero, one, or two SIM modem slots. Previously it assumed exactly one slot.
Description of the change
Make the wizard properly handle devices with zero, one, or two SIM modem slots. Previously it assumed exactly one slot.
The method I chose here is hard-coded to max of two slots, because dual SIM isn't uncommong. I'd like a better way, but that API apparently doesn't exist yet [1]. So this is fine for now.
[1] I *could* run a for loop, creating dynamic OfonoSimManager objects, checking their 'present' properties, then destroying the objects. But that seems not very QML-like.
== Checklist ==
* Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)
- Yes
* Did you build your software in a clean sbuild/pbuilder chroot or ppa?
- NA, just QML changes
* Did you build your software in a clean sbuild/pbuilder armhf chroot or ppa?
- NA, just QML changes
* Has your component "TestPlan” been executed successfully on emulator, N4?
- Yeah
* Has a 5 minute exploratory testing run been executed on N4?
- Yes
* If you changed the packaging (debian), did you subscribe a core-dev to this MP?
- NA
* If you changed the UI, did you subscribe the design-reviewers to this MP?
- NA
* What components might get impacted by your changes?
- None
* Have you requested review by the teams of these owning components?
- NA
You could use states and Loader elements to dynamically create Ofono objects for one or two sims, as demonstrated in this non-functional example[1].
Either way, the current code LGTM.
[1] http:// pastebin. ubuntu. com/7983861