blob: f9e78d67a811d454f3d75e8c3856abf264409d09 [file] [log] [blame]
Alex Vakulenkof6b38712014-09-03 16:23:38 -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_COMMANDS_COMMAND_PROXY_INTERFACE_H_
6#define BUFFET_COMMANDS_COMMAND_PROXY_INTERFACE_H_
7
8#include <string>
9
10namespace buffet {
11
12// This interface lets the command instance to update its proxy of command
13// state changes, so that the proxy can then notify clients of the changes over
14// their supported protocol (e.g. D-Bus).
15class CommandProxyInterface {
16 public:
17 virtual ~CommandProxyInterface() = default;
18
19 virtual void OnStatusChanged(const std::string& status) = 0;
20 virtual void OnProgressChanged(int progress) = 0;
21};
22
23} // namespace buffet
24
25#endif // BUFFET_COMMANDS_COMMAND_PROXY_INTERFACE_H_