Home | History | Annotate | Download | only in update_engine
      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 kGetStatus[] = "GetStatus";
     20 const char kRebootIfNeeded[] = "RebootIfNeeded";
     21 const char kSetChannel[] = "SetChannel";
     22 const char kGetChannel[] = "GetChannel";
     23 const char kAttemptRollback[] = "AttemptRollback";
     24 const char kCanRollback[] = "CanRollback";
     25 
     26 // Signals.
     27 const char kStatusUpdate[] = "StatusUpdate";
     28 
     29 // Flags used in the AttemptUpdateWithFlags() D-Bus method.
     30 typedef enum {
     31   kAttemptUpdateFlagNonInteractive = (1 << 0)
     32 } AttemptUpdateFlags;
     33 
     34 // Operations contained in StatusUpdate signals.
     35 const char kUpdateStatusIdle[] = "UPDATE_STATUS_IDLE";
     36 const char kUpdateStatusCheckingForUpdate[] =
     37     "UPDATE_STATUS_CHECKING_FOR_UPDATE";
     38 const char kUpdateStatusUpdateAvailable[] = "UPDATE_STATUS_UPDATE_AVAILABLE";
     39 const char kUpdateStatusDownloading[] = "UPDATE_STATUS_DOWNLOADING";
     40 const char kUpdateStatusVerifying[] = "UPDATE_STATUS_VERIFYING";
     41 const char kUpdateStatusFinalizing[] = "UPDATE_STATUS_FINALIZING";
     42 const char kUpdateStatusUpdatedNeedReboot[] =
     43     "UPDATE_STATUS_UPDATED_NEED_REBOOT";
     44 const char kUpdateStatusReportingErrorEvent[] =
     45     "UPDATE_STATUS_REPORTING_ERROR_EVENT";
     46 const char kUpdateStatusAttemptingRollback[] =
     47     "UPDATE_STATUS_ATTEMPTING_ROLLBACK";
     48 const char kUpdateStatusDisabled[] = "UPDATE_STATUS_DISABLED";
     49 }  // namespace update_engine
     50 
     51 #endif  // SYSTEM_API_DBUS_UPDATE_ENGINE_DBUS_CONSTANTS_H_
     52