Mir
connector_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 #ifndef MIR_FRONTEND_CONNECTOR_REPORT_H_
20 #define MIR_FRONTEND_CONNECTOR_REPORT_H_
21 
22 #include <stdexcept>
23 #include <string>
24 
25 namespace mir
26 {
27 namespace frontend
28 {
29 
31 {
32 public:
33 
34  virtual void thread_start() = 0;
35  virtual void thread_end() = 0;
36 
37  virtual void creating_session_for(int socket_handle) = 0;
38  virtual void creating_socket_pair(int server_handle, int client_handle) = 0;
39 
40  virtual void listening_on(std::string const& endpoint) = 0;
41 
42  virtual void error(std::exception const& error) = 0;
43 
44 protected:
45  virtual ~ConnectorReport() = default;
46  ConnectorReport() = default;
47  ConnectorReport(const ConnectorReport&) = delete;
48  ConnectorReport& operator=(const ConnectorReport&) = delete;
49 };
50 
51 }
52 }
53 
54 #endif // MIR_FRONTEND_CONNECTOR_REPORT_H_
All things Mir.
Definition: atomic_callback.h:25
Definition: connector_report.h:30
ConnectorReport & operator=(const ConnectorReport &)=delete
virtual void creating_session_for(int socket_handle)=0
virtual void creating_socket_pair(int server_handle, int client_handle)=0
virtual ~ConnectorReport()=default
virtual void error(std::exception const &error)=0
virtual void listening_on(std::string const &endpoint)=0

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