1 // 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 SYSTEM_API_DBUS_UPDATE_ENGINE_DBUS_CONSTANTS_H_ 6 #define SYSTEM_API_DBUS_UPDATE_ENGINE_DBUS_CONSTANTS_H_ 7 8 namespace update_engine { 9 const char kUpdateEngineInterface[] = "org.chromium.UpdateEngineInterface"; 10 const char kUpdateEngineServicePath[] = "/org/chromium/UpdateEngine"; 11 const char kUpdateEngineServiceName[] = "org.chromium.UpdateEngine"; 12 13 // Generic UpdateEngine D-Bus error. 14 const char kUpdateEngineServiceErrorFailed[] = 15 "org.chromium.UpdateEngine.Error.Failed"; 16 17 // Methods. 18 const char kAttemptUpdate[] = "AttemptUpdate"; 19 const char kGetLastAttemptError[] = "GetLastAttemptError"; 20 const char kGetStatus[] = "GetStatus"; 21 const char kRebootIfNeeded[] = "RebootIfNeeded"; 22 const char kSetChannel[] = "SetChannel"; 23 const char kGetChannel[] = "GetChannel"; 24 const char kAttemptRollback[] = "AttemptRollback"; 25 const char kCanRollback[] = "CanRollback"; 26 const char kGetEolStatus[] = "GetEolStatus"; 27 const char kSetUpdateOverCellularPermission[] = 28 "SetUpdateOverCellularPermission"; 29 30 // Signals. 31 const char kStatusUpdate[] = "StatusUpdate"; 32 33 // Flags used in the AttemptUpdateWithFlags() D-Bus method. 34 typedef enum { 35 kAttemptUpdateFlagNonInteractive = (1 << 0) 36 } AttemptUpdateFlags; 37 38 // End of Life status used in the GetEolStatus() D-Bus method. 39 typedef enum { 40 kSupported = 0, 41 kSecurityOnly = 1, 42 kEol = 2, 43 } EndOfLifeStatus; 44 45 // Operations contained in StatusUpdate signals. 46 const char kUpdateStatusIdle[] = "UPDATE_STATUS_IDLE"; 47 const char kUpdateStatusCheckingForUpdate[] = 48 "UPDATE_STATUS_CHECKING_FOR_UPDATE"; 49 const char kUpdateStatusUpdateAvailable[] = "UPDATE_STATUS_UPDATE_AVAILABLE"; 50 const char kUpdateStatusDownloading[] = "UPDATE_STATUS_DOWNLOADING"; 51 const char kUpdateStatusVerifying[] = "UPDATE_STATUS_VERIFYING"; 52 const char kUpdateStatusFinalizing[] = "UPDATE_STATUS_FINALIZING"; 53 const char kUpdateStatusUpdatedNeedReboot[] = 54 "UPDATE_STATUS_UPDATED_NEED_REBOOT"; 55 const char kUpdateStatusReportingErrorEvent[] = 56 "UPDATE_STATUS_REPORTING_ERROR_EVENT"; 57 const char kUpdateStatusAttemptingRollback[] = 58 "UPDATE_STATUS_ATTEMPTING_ROLLBACK"; 59 const char kUpdateStatusDisabled[] = "UPDATE_STATUS_DISABLED"; 60 } // namespace update_engine 61 62 #endif // SYSTEM_API_DBUS_UPDATE_ENGINE_DBUS_CONSTANTS_H_ 63