summaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-11-03 13:51:59 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2016-11-26 18:56:29 +0100
commitfe36daa38ab1995c8c7fc6470d06b8595efd2385 (patch)
tree1dd4b5bf18537ed16ac31df331b0983fd9d08a65 /NitrokeyManager.cc
parent130a33311567a1f0f6a9a2d8707bff20a558eb20 (diff)
downloadlibnitrokey-fe36daa38ab1995c8c7fc6470d06b8595efd2385.tar.gz
libnitrokey-fe36daa38ab1995c8c7fc6470d06b8595efd2385.tar.bz2
Tests: remake fill SD card test. Get progress bar value when busy.
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 49b34c4..fdf1e05 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -562,5 +562,14 @@ namespace nitrokey{
return strdup(p.data().dissect().c_str());
}
+ int NitrokeyManager::get_progress_bar_value(){
+ try{
+ stick20::GetDeviceStatus::CommandTransaction::run(*device);
+ return -1;
+ }
+ catch (LongOperationInProgressException &e){
+ return e.progress_bar_value;
+ }
+ }
}