]> Git Repo - VerusCoin.git/commitdiff
Add public method to get state as a human readable string from an AsyncRPCOperation.
authorSimon <[email protected]>
Mon, 22 Aug 2016 16:15:22 +0000 (09:15 -0700)
committerSimon <[email protected]>
Fri, 9 Sep 2016 04:46:13 +0000 (21:46 -0700)
src/asyncrpcoperation.cpp
src/asyncrpcoperation.h

index 56284ab0b02eb68ba0f8595c4710f5615d4beb9e..013b0fbb83738bb5e061bb4e142904ded3cb7afa 100644 (file)
@@ -145,3 +145,8 @@ Value AsyncRPCOperation::getStatus() const {
     return Value(obj);
 }
 
+
+std::string AsyncRPCOperation::getStateAsString() const {
+    OperationStatus status = this->getState();
+    return OperationStatusMap[status];
+}
index f30c174d61e5c88d1727e52b6685c513d052d804..7e804a5c790e059ea9ce26c05764d4b93c36aaba 100644 (file)
@@ -71,6 +71,8 @@ public:
     Value getError() const;
     
     Value getResult() const;
+
+    std::string getStateAsString() const;
     
     int getErrorCode() const {
         return errorCode;
This page took 0.032449 seconds and 4 git commands to generate.