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 result_receipt_succeeded(mir::protobuf::wire::Result const& result) override;
40  void result_receipt_failed(std::exception const& ex) override;
41 
42  void event_parsing_succeeded(MirEvent const& event) override;
43  void event_parsing_failed(mir::protobuf::Event const& event) override;
44 
45  void orphaned_result(mir::protobuf::wire::Result const& result) override;
46  void complete_response(mir::protobuf::wire::Result const& result) override;
47 
48  void result_processing_failed(mir::protobuf::wire::Result const& result,
49  std::exception const& ex) override;
50 
51  void file_descriptors_received(google::protobuf::MessageLite const& response,
52  std::vector<Fd> const& fds) override;
53 };
54 
55 }
56 }
57 }
58 
59 #endif /* MIR_CLIENT_RPC_NULL_RPC_REPORT_H_ */
All things Mir.
Definition: atomic_callback.h:25
void result_processing_failed(mir::protobuf::wire::Result const &result, std::exception const &ex) override
Definition: null_rpc_report.cpp:71
void event_parsing_failed(mir::protobuf::Event const &event) override
Definition: null_rpc_report.cpp:55
void file_descriptors_received(google::protobuf::MessageLite const &response, std::vector< Fd > const &fds) override
Definition: null_rpc_report.cpp:77
void result_receipt_failed(std::exception const &ex) override
Definition: null_rpc_report.cpp:44
void result_receipt_succeeded(mir::protobuf::wire::Result const &result) override
Definition: null_rpc_report.cpp:39
Definition: rpc_report.h:53
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:50
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_private.h:178
void complete_response(mir::protobuf::wire::Result const &result) override
Definition: null_rpc_report.cpp:65
void orphaned_result(mir::protobuf::wire::Result const &result) override
Definition: null_rpc_report.cpp:60

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015