blob: 6b75f4d2120b23422f840d3b4a14d85cd7c5d12b [file] [log] [blame]
Christopher Wileyc900e482015-02-15 15:42:04 -08001// 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
10namespace buffet {
11
12// See the DBus interface XML file for complete descriptions of these states.
13enum class RegistrationStatus {
Vitaly Bukab055f152015-03-12 13:41:43 -070014 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 Bullock24d189f2015-02-26 13:09:18 -050017 kInvalidCredentials, // Our registration has been revoked.
Christopher Wileyc900e482015-02-15 15:42:04 -080018};
19
20std::string StatusToString(RegistrationStatus status);
21
22} // namespace buffet
23
24#endif // BUFFET_REGISTRATION_STATUS_H_