blob: aa6cf9f9bdd1c08eed845f886881a7bac9a233ae [file] [log] [blame]
Christopher Wileyeb19fa02014-03-27 13:27:30 -07001// 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
8namespace buffet {
9
10namespace dbus_constants {
11
12// The service name claimed by the Buffet daemon.
13extern const char kServiceName[];
14
Christopher Wileyb76eb292014-05-05 16:09:16 -070015// The object at this path implements the ObjectManager interface.
Christopher Wileyeb19fa02014-03-27 13:27:30 -070016extern const char kRootServicePath[];
17
Christopher Wileya4915c42014-03-27 14:45:37 -070018// Interface implemented by the object at kManagerServicePath.
19extern const char kManagerInterface[];
20extern const char kManagerServicePath[];
21
22// Methods exposed as part of kManagerInterface.
Alex Vakulenko3cb466c2014-04-15 11:36:32 -070023extern const char kManagerCheckDeviceRegistered[];
24extern const char kManagerGetDeviceInfo[];
25extern const char kManagerStartRegisterDevice[];
26extern const char kManagerFinishRegisterDevice[];
Christopher Wileya4915c42014-03-27 14:45:37 -070027extern const char kManagerUpdateStateMethod[];
Christopher Wileyb76eb292014-05-05 16:09:16 -070028extern const char kManagerTestMethod[];
Christopher Wileya4915c42014-03-27 14:45:37 -070029
Alex Vakulenko4866ac92014-08-20 12:53:33 -070030// Interface implemented by the command instance objects.
31extern const char kCommandInterface[];
32extern const char kCommandServicePathPrefix[];
33
34// Methods exposed as part of kCommandInterface.
35extern const char kCommandSetProgress[];
36extern const char kCommandAbort[];
37extern const char kCommandCancel[];
38extern const char kCommandDone[];
39
40// Properties exposed as part of kCommandInterface.
41extern const char kCommandName[];
42extern const char kCommandCategory[];
43extern const char kCommandId[];
44extern const char kCommandStatus[];
45extern const char kCommandProgress[];
46
47// Values for command execution status.
48extern const char kCommandStatusQueued[];
49extern const char kCommandStatusInProgress[];
50extern const char kCommandStatusPaused[];
51extern const char kCommandStatusError[];
52extern const char kCommandStatusDone[];
53extern const char kCommandStatusCanceled[];
54extern const char kCommandStatusAborted[];
55extern const char kCommandStatusExpired[];
56
Christopher Wileyeb19fa02014-03-27 13:27:30 -070057} // namespace dbus_constants
58
59} // namespace buffet
60
61#endif // BUFFET_DBUS_CONSTANTS_H_