2 * Copyright (C) 2013-2015 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 Ubuntu.Components 1.2
20import Ubuntu.Components.Popups 1.0
21import Unity.Session 0.1
22import ".." as LocalComponents
27 title: i18n.tr("No SIM card installed")
28 forwardButtonSourceComponent: forwardButton
32 property bool hadSIM: simManager0.present || simManager1.present
39 print("=== SIM page: timer triggered");
40 hadSIM = simManager0.present || simManager1.present;
41 print("=== SIM page: had sim:", hadSIM);
47 onGotSimCardChanged: {
48 print("=== SIM page: SIM card inserted");
49 if (!hadSIM && modemManager.gotSimCard) { // show the restart dialog in case a SIM gets inserted
50 print("=== SIM page: showing reboot dialog");
51 restartDialog.visible = true;
58 title: i18n.tr("SIM card added")
59 text: i18n.tr("You must restart the device to access the mobile network.")
63 text: i18n.tr("Restart")
65 DBusUnitySessionService.reboot();
73 leftMargin: leftMargin
74 rightMargin: rightMargin
79 anchors.left: parent.left
80 anchors.right: parent.right
82 text: i18n.tr("You won’t be able to make calls or use text messaging without a SIM.")
84 font.weight: Font.Light
85 color: restartDialog.visible ? Theme.palette.normal.backgroundText : textColor
89 anchors.left: parent.left
90 anchors.right: parent.right
92 textFormat: Text.RichText
93 text: i18n.tr("To proceed with no SIM tap <em>Skip</em>.")
95 font.weight: Font.Light
96 color: restartDialog.visible ? Theme.palette.normal.backgroundText : textColor
102 LocalComponents.StackButton {
103 text: i18n.tr("Skip")
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list