2
* Copyright (C) 2014 Canonical Ltd
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 3 as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
* Ken Vandine <ken.vandine@canonical.com>
18
* Jonas G. Drange <jonas.drange@canonical.com>
23
import Ubuntu.Components 1.1
24
import Ubuntu.Components.ListItems 0.1 as ListItem
35
objectName: "callFwdSim1"
36
text: i18n.tr("Call forwarding")
38
onClicked: pageStack.push(Qt.resolvedUrl("CallForwarding.qml"), {
40
headerTitle: sims[0].title
45
objectName: "callWaitSim1"
46
text: i18n.tr("Call waiting")
48
onClicked: pageStack.push(Qt.resolvedUrl("CallWaiting.qml"), {
50
headerTitle: sims[0].title
55
objectName: "simServicesSim1"
56
text: i18n.tr("Services")
58
enabled: sims[0].simMng.present
59
onClicked: pageStack.push(Qt.resolvedUrl("Services.qml"), {
60
carrierString: sims[0].netReg.name,
62
headerTitle: sims[0].title
73
objectName: "callFwdSim2"
74
text: i18n.tr("Call forwarding")
76
onClicked: pageStack.push(Qt.resolvedUrl("CallForwarding.qml"), {
78
headerTitle: sims[1].title
83
objectName: "callWaitSim2"
84
text: i18n.tr("Call waiting")
86
onClicked: pageStack.push(Qt.resolvedUrl("CallWaiting.qml"), {
88
headerTitle: sims[1].title
93
objectName: "simServicesSim2"
94
text: i18n.tr("Services")
96
enabled: sims[1].simMng.present
97
onClicked: pageStack.push(Qt.resolvedUrl("Services.qml"), {
98
carrierString: sims[1].netReg.name,
100
headerTitle: sims[1].title
107
schema.id: "com.ubuntu.phone"
108
Component.onCompleted: {
110
var simNames = phoneSettings.simNames;
111
var m0 = sims[0].path
112
var m1 = sims[1].path
114
simNames[m0] = "SIM 1";
117
simNames[m1] = "SIM 2";
119
phoneSettings.simNames = simNames;
126
value: phoneSettings.simNames[modemsSorted[0]]
132
value: phoneSettings.simNames[modemsSorted[1]]