summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--basicsuite/Launcher Settings/NetworkController.qml21
-rw-r--r--basicsuite/Launcher Settings/main.qml39
-rw-r--r--basicsuite/Launcher Settings/preview_l.jpgbin10743 -> 12642 bytes
3 files changed, 60 insertions, 0 deletions
diff --git a/basicsuite/Launcher Settings/NetworkController.qml b/basicsuite/Launcher Settings/NetworkController.qml
new file mode 100644
index 0000000..3ec36ac
--- /dev/null
+++ b/basicsuite/Launcher Settings/NetworkController.qml
@@ -0,0 +1,21 @@
+import QtDroid.Utils 1.0
+import QtQuick 2.0
+
+QtObject {
+
+ function getIPAddress()
+ {
+ return DroidUtils.getIPAddress()
+ }
+
+ function getHostname()
+ {
+ return DroidUtils.getHostname()
+ }
+
+ function setHostname(value)
+ {
+ return DroidUtils.setHostname(value)
+ }
+
+}
diff --git a/basicsuite/Launcher Settings/main.qml b/basicsuite/Launcher Settings/main.qml
index 8384566..140aebb 100644
--- a/basicsuite/Launcher Settings/main.qml
+++ b/basicsuite/Launcher Settings/main.qml
@@ -31,6 +31,11 @@ Rectangle {
source: "BrightnessController.qml"
}
+ Loader {
+ id: networkControllerLoader
+ source: "NetworkController.qml"
+ }
+
Flickable {
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
@@ -108,6 +113,40 @@ Rectangle {
}
}
}
+
+ GroupBox {
+ id: networkOptions
+ title: "Network Options"
+
+ Layout.fillWidth: true
+
+ GridLayout {
+ id: networkGrid
+
+ rows: 2
+ columns: 3
+ flow: GridLayout.TopToBottom
+ anchors.fill: parent
+
+ Label { text: "Hostname: "; }
+ Label { text: "IP address: "; }
+
+ TextField {
+ id: hostname
+ text: if (networkControllerLoader.item != undefined) { networkControllerLoader.item.getHostname(); }
+ Layout.fillWidth: true
+ }
+
+ Label { text: if (networkControllerLoader.item != undefined) { networkControllerLoader.item.getIPAddress(); } }
+
+ Button {
+ text: "Change hostname"
+ onClicked: networkControllerLoader.item.setHostname(hostname.text);
+ enabled: networkControllerLoader.item != undefined
+ }
+
+ }
+ }
}
}
}
diff --git a/basicsuite/Launcher Settings/preview_l.jpg b/basicsuite/Launcher Settings/preview_l.jpg
index bdfafee..118edc4 100644
--- a/basicsuite/Launcher Settings/preview_l.jpg
+++ b/basicsuite/Launcher Settings/preview_l.jpg
Binary files differ