1 dbusRef=`kdialog --progressbar "Press Cancel at Any time" 10`
2 qdbus $dbusRef org.kde.kdialog.ProgressDialog.showCancelButton true
4 until test "true" = `qdbus $dbusRef org.kde.kdialog.ProgressDialog.wasCancelled`; do
6 inc=$((`qdbus $dbusRef org.freedesktop.DBus.Properties.Get org.kde.kdialog.ProgressDialog value` + 1))
7 qdbus $dbusRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value $inc;
10 qdbus $dbusRef org.kde.kdialog.ProgressDialog.close