mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 15:35:49 -04:00
RsTokenService use enum for request status
This commit is contained in:
parent
ec95b6d054
commit
b4d2ce82c1
20 changed files with 146 additions and 153 deletions
|
@ -123,18 +123,19 @@ class RsTokenService
|
|||
|
||||
public:
|
||||
|
||||
// TODO CLEANUP: This should be an enum
|
||||
static const uint8_t GXS_REQUEST_V2_STATUS_FAILED;
|
||||
static const uint8_t GXS_REQUEST_V2_STATUS_PENDING;
|
||||
static const uint8_t GXS_REQUEST_V2_STATUS_PARTIAL;
|
||||
static const uint8_t GXS_REQUEST_V2_STATUS_COMPLETE;
|
||||
static const uint8_t GXS_REQUEST_V2_STATUS_DONE; // ONCE ALL DATA RETRIEVED.
|
||||
static const uint8_t GXS_REQUEST_V2_STATUS_CANCELLED;
|
||||
enum GxsRequestStatus : uint8_t
|
||||
{
|
||||
FAILED,
|
||||
PENDING,
|
||||
PARTIAL,
|
||||
COMPLETE,
|
||||
DONE, /// Once all data has been retrived
|
||||
CANCELLED
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
RsTokenService() { return; }
|
||||
virtual ~RsTokenService() { return; }
|
||||
RsTokenService() {}
|
||||
virtual ~RsTokenService() {}
|
||||
|
||||
/* Data Requests */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue