[-]
[+]
|
Changed |
_service:tar_git:glacier-settings.changes
|
|
[-]
[+]
|
Changed |
_service:tar_git:glacier-settings.spec
^
|
|
[-]
[+]
|
Changed |
_service
^
|
@@ -6,7 +6,7 @@
<service name="tar_git">
<param name="url">https://github.com/nemomobile-ux/glacier-settings.git</param>
<param name="branch">master</param>
- <param name="revision">2464221afd81a1b10f4b0d478c441f522b9fcb6f</param>
+ <param name="revision">ec093b7f012fe673398b2ab52af26326aea8648f</param>
<param name="token"/>
<param name="debian">N</param>
<param name="dumb">N</param>
|
[-]
[+]
|
Changed |
_service:tar_git:glacier-settings-0.1.3.tar.bz2/qml/plugins/developermode/developermode.qml
^
|
@@ -24,6 +24,7 @@
import QtQuick.Controls.Styles.Nemo 1.0
import org.nemomobile.systemsettings 1.0
+import org.nemomobile.devicelock 1.0
import "../../components"
@@ -31,6 +32,8 @@
Page {
id: listViewPage
+ property bool reqestAllowUnsuportedToken: false
+
headerTools: HeaderToolsLayout {
showBackButton: true;
title: qsTr("Developer mode")
@@ -40,6 +43,29 @@
id: devModeSettings
}
+ DeviceLockSettings {
+ id: deviceLockSettings
+ }
+
+ Authenticator {
+ id: authenticator
+ onAuthenticated: {
+ if(reqestAllowUnsuportedToken) {
+ deviceLockSettings.setSideloadingAllowed(authenticationToken,!deviceLockSettings.sideloadingAllowed)
+ reqestAllowUnsuportedToken = false;
+ }
+ }
+ }
+
+ Connections{
+ target: deviceLockSettings.authorization
+ onChallengeIssued:{
+
+ authenticator.authenticate(deviceLockSettings.authorization.challengeCode,
+ deviceLockSettings.authorization.allowedMethods)
+ }
+ }
+
SettingsColumn{
Rectangle{
@@ -69,6 +95,45 @@
}
Rectangle{
+ id: allowUntrustedSoftware
+ width: parent.width
+ height: childrenRect.height
+
+ color: "transparent"
+
+ Label{
+ id:allowUntrustedSoftwareLabel
+ text: qsTr("Allow install untrusted software");
+ anchors{
+ left: parent.left
+ }
+ }
+
+ CheckBox{
+ id: allowUntrustedSoftwareCheck
+ checked: deviceLockSettings.sideloadingAllowed
+ anchors{
+ right: parent.right
+ verticalCenter: allowUntrustedSoftwareLabel.verticalCenter
+ }
+ onClicked: {
+ switch(deviceLockSettings.authorization.status) {
+ case Authorization.NoChallenge:
+ reqestAllowUnsuportedToken = true
+ deviceLockSettings.authorization.requestChallenge()
+ break
+ case Authorization.ChallengeIssued:
+ console.error("ChallengeIssued not suppoted in NEMO now...")
+ break
+ default:
+ console.error("Unsupported auth status")
+ }
+ }
+ }
+ }
+
+
+ Rectangle{
id: wlanIpAddress
width: parent.width
height: childrenRect.height
|