Christopher Wiley | eb19fa0 | 2014-03-27 13:27:30 -0700 | [diff] [blame] | 1 | // Copyright 2014 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_DBUS_CONSTANTS_H_ |
| 6 | #define BUFFET_DBUS_CONSTANTS_H_ |
| 7 | |
| 8 | namespace buffet { |
| 9 | |
| 10 | namespace dbus_constants { |
| 11 | |
| 12 | // The service name claimed by the Buffet daemon. |
| 13 | extern const char kServiceName[]; |
| 14 | |
Christopher Wiley | b76eb29 | 2014-05-05 16:09:16 -0700 | [diff] [blame] | 15 | // The object at this path implements the ObjectManager interface. |
Christopher Wiley | eb19fa0 | 2014-03-27 13:27:30 -0700 | [diff] [blame] | 16 | extern const char kRootServicePath[]; |
| 17 | |
Christopher Wiley | a4915c4 | 2014-03-27 14:45:37 -0700 | [diff] [blame] | 18 | // Interface implemented by the object at kManagerServicePath. |
| 19 | extern const char kManagerInterface[]; |
| 20 | extern const char kManagerServicePath[]; |
| 21 | |
| 22 | // Methods exposed as part of kManagerInterface. |
Alex Vakulenko | 3cb466c | 2014-04-15 11:36:32 -0700 | [diff] [blame] | 23 | extern const char kManagerCheckDeviceRegistered[]; |
| 24 | extern const char kManagerGetDeviceInfo[]; |
| 25 | extern const char kManagerStartRegisterDevice[]; |
| 26 | extern const char kManagerFinishRegisterDevice[]; |
Christopher Wiley | a4915c4 | 2014-03-27 14:45:37 -0700 | [diff] [blame] | 27 | extern const char kManagerUpdateStateMethod[]; |
Christopher Wiley | b76eb29 | 2014-05-05 16:09:16 -0700 | [diff] [blame] | 28 | extern const char kManagerTestMethod[]; |
Christopher Wiley | a4915c4 | 2014-03-27 14:45:37 -0700 | [diff] [blame] | 29 | |
Alex Vakulenko | 4866ac9 | 2014-08-20 12:53:33 -0700 | [diff] [blame^] | 30 | // Interface implemented by the command instance objects. |
| 31 | extern const char kCommandInterface[]; |
| 32 | extern const char kCommandServicePathPrefix[]; |
| 33 | |
| 34 | // Methods exposed as part of kCommandInterface. |
| 35 | extern const char kCommandSetProgress[]; |
| 36 | extern const char kCommandAbort[]; |
| 37 | extern const char kCommandCancel[]; |
| 38 | extern const char kCommandDone[]; |
| 39 | |
| 40 | // Properties exposed as part of kCommandInterface. |
| 41 | extern const char kCommandName[]; |
| 42 | extern const char kCommandCategory[]; |
| 43 | extern const char kCommandId[]; |
| 44 | extern const char kCommandStatus[]; |
| 45 | extern const char kCommandProgress[]; |
| 46 | |
| 47 | // Values for command execution status. |
| 48 | extern const char kCommandStatusQueued[]; |
| 49 | extern const char kCommandStatusInProgress[]; |
| 50 | extern const char kCommandStatusPaused[]; |
| 51 | extern const char kCommandStatusError[]; |
| 52 | extern const char kCommandStatusDone[]; |
| 53 | extern const char kCommandStatusCanceled[]; |
| 54 | extern const char kCommandStatusAborted[]; |
| 55 | extern const char kCommandStatusExpired[]; |
| 56 | |
Christopher Wiley | eb19fa0 | 2014-03-27 13:27:30 -0700 | [diff] [blame] | 57 | } // namespace dbus_constants |
| 58 | |
| 59 | } // namespace buffet |
| 60 | |
| 61 | #endif // BUFFET_DBUS_CONSTANTS_H_ |