add UNKNOWN AvailabilityStatus
authorAleksandar Kanchev <kanchev@itestra.com>
Thu, 21 Feb 2013 14:15:46 +0000 (15:15 +0100)
committerAleksandar Kanchev <kanchev@itestra.com>
Thu, 21 Feb 2013 14:15:46 +0000 (15:15 +0100)
Support cases where we're simply waiting for a callback to set our
variable to either AVAILABLE or NOT_AVAILABLE. Without the UNKNOWN
value, another boolean variable was needed to indicate if the
AvailabilityStatus was already set.

src/CommonAPI/types.h

index 69ebbd1..13c36aa 100644 (file)
@@ -13,6 +13,7 @@
 namespace CommonAPI {
 
 enum class AvailabilityStatus {
+       UNKNOWN,
        AVAILABLE,
        NOT_AVAILABLE
 };