Mir
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_LOGGING_RPC_REPORT_H_
20 #define MIR_CLIENT_LOGGING_RPC_REPORT_H_
21 
22 #include "../rpc/rpc_report.h"
23 
24 #include <memory>
25 
26 namespace mir
27 {
28 
29 namespace logging
30 {
31 class Logger;
32 }
33 
34 namespace client
35 {
36 namespace logging
37 {
38 
39 class RpcReport : public rpc::RpcReport
40 {
41 public:
42  RpcReport(std::shared_ptr<mir::logging::Logger> const& logger);
43 
44  void invocation_requested(mir::protobuf::wire::Invocation const& invocation) override;
45  void invocation_succeeded(mir::protobuf::wire::Invocation const& invocation) override;
46  void invocation_failed(mir::protobuf::wire::Invocation const& invocation,
47  std::exception const& ex) override;
48 
49  void result_receipt_succeeded(mir::protobuf::wire::Result const& result) override;
50  void result_receipt_failed(std::exception const& ex) override;
51 
52  void event_parsing_succeeded(MirEvent const& event) override;
53  void event_parsing_failed(mir::protobuf::Event const& event) override;
54 
55  void orphaned_result(mir::protobuf::wire::Result const& result) override;
56  void complete_response(mir::protobuf::wire::Result const& result) override;
57 
58  void result_processing_failed(mir::protobuf::wire::Result const& result,
59  std::exception const& ex) override;
60 
61  void file_descriptors_received(google::protobuf::MessageLite const& response,
62  std::vector<Fd> const& fds) override;
63 
64 private:
65  std::shared_ptr<mir::logging::Logger> const logger;
66 };
67 
68 }
69 }
70 }
71 
72 #endif /* MIR_CLIENT_LOGGING_RPC_REPORT_H_ */
All things Mir.
Definition: atomic_callback.h:25
event_parsing_succeeded
Definition: rpc_report_tp.h:62
Definition: rpc_report.h:53
file_descriptors_received
Definition: rpc_report_tp.h:80
complete_response
Definition: rpc_report_tp.h:71
Definition: rpc_report.h:39
result_receipt_succeeded
Definition: rpc_report_tp.h:53
invocation_succeeded
Definition: rpc_report_tp.h:43
Definition: event.h:30

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016