chromium/third_party/cros_system_api/dbus/update_engine/dbus-constants.h

// Copyright 2015 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SYSTEM_API_DBUS_UPDATE_ENGINE_DBUS_CONSTANTS_H_
#define SYSTEM_API_DBUS_UPDATE_ENGINE_DBUS_CONSTANTS_H_

namespace update_engine {
const char kUpdateEngineInterface[] =;
const char kUpdateEngineServicePath[] =;
const char kUpdateEngineServiceName[] =;

// Generic UpdateEngine D-Bus error.
const char kUpdateEngineServiceErrorFailed[] =;

// Methods.
const char kUpdate[] =;
const char kGetLastAttemptError[] =;
const char kGetStatusAdvanced[] =;
const char kRebootIfNeeded[] =;
const char kSetChannel[] =;
const char kGetChannel[] =;
const char kSetCohortHint[] =;
const char kGetCohortHint[] =;
const char kAttemptRollback[] =;
const char kCanRollback[] =;
const char kSetUpdateOverCellularPermission[] =;
const char kSetUpdateOverCellularTarget[] =;
const char kToggleFeature[] =;
const char kIsFeatureEnabled[] =;
const char kApplyDeferredUpdate[] =;
const char kApplyDeferredUpdateAdvanced[] =;

// Signals.
const char kStatusUpdateAdvanced[] =;

// Operations contained in |StatusUpdate| signals.
const char kUpdateStatusIdle[] =;
const char kUpdateStatusCheckingForUpdate[] =;
const char kUpdateStatusUpdateAvailable[] =;
const char kUpdateStatusDownloading[] =;
const char kUpdateStatusVerifying[] =;
const char kUpdateStatusFinalizing[] =;
const char kUpdateStatusUpdatedNeedReboot[] =;
const char kUpdateStatusReportingErrorEvent[] =;
const char kUpdateStatusAttemptingRollback[] =;
const char kUpdateStatusDisabled[] =;
const char kUpdateStatusNeedPermissionToUpdate[] =;
const char kUpdateStatusCleanupPreviousUpdate[] =;
const char kUpdateStatusUpdatedButDeferred[] =;

// Feature names.
const char kFeatureRepeatedUpdates[] =;
const char kFeatureConsumerAutoUpdate[] =;

// Action exit codes.
// Reference common/error_code.h in update_engine repo for direct mappings and
// future updates to this enum class. If new errors need to be added here, it
// must be kept in sync with common/error_code.h in update_engine.
enum class ErrorCode : int {};

}  // namespace update_engine

#endif  // SYSTEM_API_DBUS_UPDATE_ENGINE_DBUS_CONSTANTS_H_