2 * Copyright (C) 2013-2016 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 as published by
6 * the Free Software Foundation; version 3.
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/>.
18import MeeGo.QOfono 0.2
19import Lomiri.Components 1.3
20import Lomiri.Components.Popups 1.3
21import Lomiri.Session 0.1
22import ".." as LocalComponents
27 title: i18n.tr("No SIM card installed")
28 forwardButtonSourceComponent: forwardButton
32 property bool hadSIM: root.simManager0.present || root.simManager1.present
39 hadSIM = root.simManager0.present || root.simManager1.present;
44 target: root.modemManager
45 onGotSimCardChanged: {
46 if (!hadSIM && root.modemManager.gotSimCard) { // show the restart dialog in case a SIM gets inserted
47 restartDialog.visible = true;
54 title: i18n.tr("SIM card added")
55 text: i18n.tr("You must restart the device to access the mobile network.")
59 text: i18n.tr("Restart")
61 DBusLomiriSessionService.reboot();
69 leftMargin: staticMargin
70 rightMargin: staticMargin
75 anchors.left: parent.left
76 anchors.right: parent.right
78 text: i18n.tr("You won’t be able to make calls or use text messaging without a SIM.")
80 font.weight: Font.Light
82 color: restartDialog.visible ? theme.palette.normal.backgroundText : textColor
86 anchors.left: parent.left
87 anchors.right: parent.right
89 textFormat: Text.RichText
90 text: i18n.tr("To proceed with no SIM tap Skip.")
92 font.weight: Font.Light
94 color: restartDialog.visible ? theme.palette.normal.backgroundText : textColor
100 LocalComponents.StackButton {
101 text: i18n.tr("Skip")