telepathyHelper.emergencyCallsAvailable no longer works

Bug #1616538 reported by Michael Terry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
telephony-service (Ubuntu)
New
Undecided
Gustavo Pichorim Boiko

Bug Description

I believe it used to.

I wanted to use it to control whether we show the "Emergency" button on the lockscreen.

Here's a sample qml file that you can run like so to reproduce:

qmlscene test.qml --desktop_file_hint=webbrowser-app.desktop

"""
import QtQuick 2.4
import Ubuntu.Components 1.3
import Ubuntu.Telephony 0.1 as Telephony

MainView {
    height: units.gu(20)
    width: units.gu(40)

    Column {
        anchors.fill: parent
        spacing: units.gu(2)

        Label {
            text: "Ready: " + (telepathyHelper.ready ? "yes" : "no")
        }

        Label {
            text: "Emergency Calls Available: " + (telepathyHelper.emergencyCallsAvailable ? "yes" : "no")
        }

        Label {
            text: "Both: " + ((telepathyHelper.ready && telepathyHelper.emergencyCallsAvailable) ? "yes" : "no")
        }
    }
}
"""

Michael Terry (mterry)
Changed in telephony-service (Ubuntu):
assignee: nobody → Gustavo Pichorim Boiko (boiko)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.