blob: fa2e2cbd120a9506d2523da4397a9f29fd7cbc66 [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.
};
std::string StatusToString(RegistrationStatus status);
} // namespace buffet
#endif // BUFFET_REGISTRATION_STATUS_H_