Alex Vakulenko | f6b3871 | 2014-09-03 16:23:38 -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_COMMANDS_COMMAND_PROXY_INTERFACE_H_ |
| 6 | #define BUFFET_COMMANDS_COMMAND_PROXY_INTERFACE_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | namespace 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). |
| 15 | class 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_ |