blob: eee0c810194f97d50dc2fbcba4f1b68bf13772c1 [file] [log] [blame]
// 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_
#include <string>
namespace buffet {
// 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);
} // namespace buffet
#endif // BUFFET_REGISTRATION_STATUS_H_