~morphis/ubuntu-system-settings/bt-remove-sync-call

« back to all changes in this revision

Viewing changes to plugins/phone/SingleSim.qml

  • Committer: CI Train Bot
  • Author(s): jonas-drange
  • Date: 2015-11-09 12:50:08 UTC
  • mfrom: (1549.1.3 lp1478049)
  • Revision ID: ci-train-bot@canonical.com-20151109125008-sppi669k54l59odw
* Cache call forwarding summary for each IMSI/ICCID.
* Block UI until the CallForwarding binding is ready.
* Do not assume a failed callforwarding change means it's disabled (could be forced by carrier). Fixes: #1478049
Approved by: Sebastien Bacher

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        text: i18n.tr("Call forwarding")
42
42
        showDivider: false
43
43
        progression: true
44
 
        value: {
45
 
            if (sim.callForwarding.voiceUnconditional) {
46
 
                return i18n.tr("All calls");
47
 
            } else if (sim.callForwarding.voiceBusy ||
48
 
                       sim.callForwarding.voiceNoReply ||
49
 
                       sim.callForwarding.voiceNotReachable) {
50
 
                return i18n.tr("Some calls")
51
 
            } else {
52
 
                return i18n.tr("Off")
53
 
            }
54
 
        }
 
44
        value: sim.getCallForwardingSummary()
55
45
        onClicked: pageStack.push(Qt.resolvedUrl("CallForwarding.qml"), {sim: sim})
56
46
    }
57
47