Christopher Wiley | c900e48 | 2015-02-15 15:42:04 -0800 | [diff] [blame] | 1 | // Copyright 2015 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef BUFFET_REGISTRATION_STATUS_H_ |
| 6 | #define BUFFET_REGISTRATION_STATUS_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | namespace buffet { |
| 11 | |
| 12 | // See the DBus interface XML file for complete descriptions of these states. |
| 13 | enum class RegistrationStatus { |
Vitaly Buka | b055f15 | 2015-03-12 13:41:43 -0700 | [diff] [blame] | 14 | kUnconfigured, // We have no credentials. |
| 15 | kConnecting, // We have credentials but not yet connected. |
| 16 | kConnected, // We're registered and connected to the cloud. |
Nathan Bullock | 24d189f | 2015-02-26 13:09:18 -0500 | [diff] [blame] | 17 | kInvalidCredentials, // Our registration has been revoked. |
Christopher Wiley | c900e48 | 2015-02-15 15:42:04 -0800 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | std::string StatusToString(RegistrationStatus status); |
| 21 | |
| 22 | } // namespace buffet |
| 23 | |
| 24 | #endif // BUFFET_REGISTRATION_STATUS_H_ |