| // Copyright 2015 The Chromium OS Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef BUFFET_REGISTRATION_STATUS_H_ |
| #define BUFFET_REGISTRATION_STATUS_H_ |
| // See the DBus interface XML file for complete descriptions of these states. |
| enum class RegistrationStatus { |
| kOffline, // We have credentials but are offline. |
| kCloudError, // We're online, but can't talk to cloud services. |
| kUnregistered, // We have no credentials. |
| kRegistering, // We've just been given credentials. |
| kRegistered, // We're registered and online. |
| kInvalidCredentials, // Our registration has been revoked. |
| std::string StatusToString(RegistrationStatus status); |
| #endif // BUFFET_REGISTRATION_STATUS_H_ |