comit the changes for quick-widgets-0.2.1
[quick-widgets] / plugins / qmlprocess / meminfo.qml
diff --git a/plugins/qmlprocess/meminfo.qml b/plugins/qmlprocess/meminfo.qml
new file mode 100644 (file)
index 0000000..b013d12
--- /dev/null
@@ -0,0 +1,35 @@
+import Qt 4.7
+import qmlprocess 1.0
+//import "content"
+
+ Column {
+     id: col
+     spacing: 2
+     width: 210
+     height: childrenRect.height
+
+ ProcessLabel {
+    label: "Active:"
+    width: parent.width;
+    color: "grey"
+    command: "sh -c \"cat /proc/meminfo | /bin/grep 'Active:'\""
+    interval_in_sec: 5
+ }
+
+ ProcessLabel { 
+    label: "Free:"
+    width: parent.width
+    color: "black" 
+    interval_in_sec: 10
+    command: "sh -c \"cat /proc/meminfo | /bin/grep 'MemFree:'\""
+ }
+
+ ProcessLabel {
+    label: "Total:"
+    width: parent.width
+    color: "#222222"
+    interval_in_sec: 0
+    command: "sh -c \"cat /proc/meminfo | /bin/grep 'MemTotal:'\""
+ }
+}
+