18 import Ubuntu.Components 0.1
19 import Ubuntu.DownloadDaemonListener 0.1
31 implicitHeight: progressBar.implicitHeight
32 implicitWidth: progressBar.implicitWidth
36 objectName:
"progressBar"
37 anchors.right: parent.right
40 implicitHeight: units.gu(4)
42 width: (root.width - units.gu(1)) / 2
44 property var source: widgetData[
"source"]
49 service: progressBar.source[
"dbus-name"] ||
""
50 dbusPath: progressBar.source[
"dbus-object"] ||
""
54 progressBar.indeterminate =
true;
56 progressBar.indeterminate =
false;
57 var percentage = parseInt(received * 100 / total);
58 progressBar.value = percentage;
63 root.triggered(widgetId,
"finished", widgetData)
67 root.triggered(widgetId,
"failed", widgetData)