2
* This file is part of system-settings
4
* Copyright (C) 2014 Canonical Ltd.
6
* Contact: Jonas G. Drange <jonas.drange@canonical.com>
8
* This program is free software: you can redistribute it and/or modify it
9
* under the terms of the GNU General Public License version 3, as published
10
* by the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranties of
14
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15
* PURPOSE. See the GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License along
18
* with this program. If not, see <http://www.gnu.org/licenses/>.
23
import MeeGo.QOfono 0.2
24
import Ubuntu.Components.ListItems 0.1 as ListItem
31
text: i18n.tr("Phone number:")
32
visible: phoneNumber1.visible
35
ListItem.SingleValue {
38
objectName: "numberItem1"
44
property string phoneNumber
45
phoneNumber: sim1.subscriberNumbers.length > 0 ?
46
sim1.subscriberNumbers[0] : ""
51
ListItem.SingleValue {
54
objectName: "numberItem2"
60
property string phoneNumber
61
phoneNumber: sim2.subscriberNumbers.length > 0 ?
62
sim2.subscriberNumbers[0] : ""
69
schema.id: "com.ubuntu.phone"
70
Component.onCompleted: {
72
var simNames = phoneSettings.simNames;
76
simNames[m0] = "SIM 1";
79
simNames[m1] = "SIM 2";
81
phoneSettings.simNames = simNames;
88
value: phoneSettings.simNames[paths[0]]
94
value: phoneSettings.simNames[paths[1]]