Mir
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  std::exception const& ex) override;
38 
39  void header_receipt_failed(std::exception const& ex) 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<Fd> 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_ */
All things Mir.
Definition: buffer_stream.h:37
void file_descriptors_received(google::protobuf::Message const &response, std::vector< Fd > const &fds) override
Definition: null_rpc_report.cpp:82
void result_processing_failed(mir::protobuf::wire::Result const &result, std::exception const &ex) override
Definition: null_rpc_report.cpp:76
void event_parsing_failed(mir::protobuf::Event const &event) override
Definition: null_rpc_report.cpp:60
void result_receipt_failed(std::exception const &ex) override
Definition: null_rpc_report.cpp:49
void result_receipt_succeeded(mir::protobuf::wire::Result const &result) override
Definition: null_rpc_report.cpp:44
void header_receipt_failed(std::exception const &ex) override
Definition: null_rpc_report.cpp:39
Definition: rpc_report.h:44
void invocation_failed(mir::protobuf::wire::Invocation const &invocation, std::exception const &ex) override
Definition: null_rpc_report.cpp:33
void event_parsing_succeeded(MirEvent const &event) override
Definition: null_rpc_report.cpp:55
void invocation_requested(mir::protobuf::wire::Invocation const &invocation) override
Definition: null_rpc_report.cpp:23
void invocation_succeeded(mir::protobuf::wire::Invocation const &invocation) override
Definition: null_rpc_report.cpp:28
Definition: null_rpc_report.h:31
Definition: event_deprecated.h:237
void complete_response(mir::protobuf::wire::Result const &result) override
Definition: null_rpc_report.cpp:70
void connection_failure(std::exception const &ex) override
Definition: null_rpc_report.cpp:88
void orphaned_result(mir::protobuf::wire::Result const &result) override
Definition: null_rpc_report.cpp:65

Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015