Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
null_rpc_report.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License version 3 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Alexandros Frantzis <alexandros.frantzis@canonical.com>
17  */
18 
19 #ifndef MIR_CLIENT_RPC_NULL_RPC_REPORT_H_
20 #define MIR_CLIENT_RPC_NULL_RPC_REPORT_H_
21 
22 #include "rpc_report.h"
23 
24 namespace mir
25 {
26 namespace client
27 {
28 namespace rpc
29 {
30 
31 class NullRpcReport : public RpcReport
32 {
33 public:
34  void invocation_requested(mir::protobuf::wire::Invocation const& invocation) override;
35  void invocation_succeeded(mir::protobuf::wire::Invocation const& invocation) override;
36  void invocation_failed(mir::protobuf::wire::Invocation const& invocation,
37  boost::system::error_code const& error) override;
38 
39  void header_receipt_failed(boost::system::error_code const& error) override;
40  void result_receipt_succeeded(mir::protobuf::wire::Result const& result) override;
41  void result_receipt_failed(std::exception const& ex) override;
42 
43  void event_parsing_succeeded(MirEvent const& event) override;
44  void event_parsing_failed(mir::protobuf::Event const& event) override;
45 
46  void orphaned_result(mir::protobuf::wire::Result const& result) override;
47  void complete_response(mir::protobuf::wire::Result const& result) override;
48 
49  void result_processing_failed(mir::protobuf::wire::Result const& result,
50  std::exception const& ex) override;
51 
52  void file_descriptors_received(google::protobuf::Message const& response,
53  std::vector<int32_t> const& fds) override;
54 
55  void connection_failure(std::exception const& ex) override;
56 };
57 
58 }
59 }
60 }
61 
62 #endif /* MIR_CLIENT_RPC_NULL_RPC_REPORT_H_ */

Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Oct 15 00:23:28 UTC 2013