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

« back to all changes in this revision

Viewing changes to plugins/phone/CallForwardItem.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:
72
72
        /**
73
73
         * Server is working.
74
74
         */
75
 
        property bool _pending: false
 
75
        property bool _pending: !callForwarding.ready
76
76
 
77
77
        /**
78
78
         * Server failed to change/fetch setting.
233
233
        Component.onCompleted: {
234
234
            item.callForwarding[item.rule + 'Changed'].connect(Utils.ruleChanged);
235
235
            item.callForwarding[item.rule + 'Complete'].connect(Utils.ruleComplete);
 
236
            item.callForwarding.readyChanged.connect(Utils.ruleReadyChanged);
236
237
        }
237
238
        Component.onDestruction: {
238
239
            item.callForwarding[item.rule + 'Changed'].disconnect(Utils.ruleChanged);
239
240
            item.callForwarding[item.rule + 'Complete'].disconnect(Utils.ruleComplete);
 
241
            item.callForwarding.readyChanged.disconnect(Utils.ruleReadyChanged);
240
242
        }
241
243
    }
242
244
}