summaryrefslogtreecommitdiff
path: root/sowatchui/qml/sowatch.js
diff options
context:
space:
mode:
Diffstat (limited to 'sowatchui/qml/sowatch.js')
-rw-r--r--sowatchui/qml/sowatch.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/sowatchui/qml/sowatch.js b/sowatchui/qml/sowatch.js
deleted file mode 100644
index f2d48dd..0000000
--- a/sowatchui/qml/sowatch.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var service = null;
-
-function getService() {
- var component = Qt.createComponent("ServiceLoader.qml");
- if (component.status == Component.Ready) {
- var loader = component.createObject(null);
- service = loader.serviceObject;
- }
-}
-
-function checkService() {
- if (service === null) {
- getService();
- }
-}
-
-function start() {
- getService();
-}
-
-function stop() {
- checkService();
- service.terminate();
-}
-
-function restart() {
- stop();
- start();
-}