Mir
session_mediator_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 it
5  * under the terms of the GNU General Public License version 3,
6  * as 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 General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Alan Griffiths <alan@octopull.co.uk>
17  */
18 
19 
20 #ifndef MIR_REPORT_LOGGING_SESSION_MEDIATOR_REPORT_H_
21 #define MIR_REPORT_LOGGING_SESSION_MEDIATOR_REPORT_H_
22 
24 
25 #include <memory>
26 
27 namespace mir
28 {
29 namespace logging
30 {
31 class Logger;
32 }
33 namespace report
34 {
35 namespace logging
36 {
37 
38 
40 {
41 public:
42  SessionMediatorReport(std::shared_ptr<mir::logging::Logger> const& log);
43 
44  virtual void session_connect_called(std::string const& app_name) override;
45 
46  virtual void session_create_surface_called(std::string const& app_name) override;
47 
48  virtual void session_next_buffer_called(std::string const& app_name) override;
49 
50  virtual void session_exchange_buffer_called(std::string const& app_name) override;
51 
52  virtual void session_submit_buffer_called(std::string const& app_name) override;
53 
54  virtual void session_allocate_buffers_called(std::string const& app_name) override;
55 
56  virtual void session_release_buffers_called(std::string const& app_name) override;
57 
58  virtual void session_release_surface_called(std::string const& app_name) override;
59 
60  virtual void session_disconnect_called(std::string const& app_name) override;
61 
62  virtual void session_configure_surface_called(std::string const& app_name) override;
63 
64  virtual void session_configure_surface_cursor_called(std::string const& app_name) override;
65 
66  virtual void session_configure_display_called(std::string const& app_name) override;
67 
68  virtual void session_set_base_display_configuration_called(std::string const& app_name) override;
69 
70  virtual void session_start_prompt_session_called(std::string const& app_name, pid_t application_process) override;
71 
72  virtual void session_stop_prompt_session_called(std::string const& app_name) override;
73 
74  void session_create_buffer_stream_called(std::string const& app_name) override;
75  void session_release_buffer_stream_called(std::string const& app_name) override;
76 
77  virtual void session_error(
78  std::string const& app_name,
79  char const* method,
80  std::string const& what) override;
81 
82 private:
83  std::shared_ptr<mir::logging::Logger> const log;
84 };
85 
86 }
87 }
88 }
89 
90 
91 #endif /* MIR_REPORT_LOGGING_SESSION_MEDIATOR_REPORT_H_ */
All things Mir.
Definition: atomic_callback.h:25
session_error
Definition: session_mediator_report_tp.h:71
session_start_prompt_session_called
Definition: session_mediator_report_tp.h:61
Definition: session_mediator_report.h:32
void log(ml::Severity severity, std::string const &message)
Definition: logger.cpp:78
Definition: session_mediator_report.h:39

Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016