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  virtual void starting_threads(int count) = 0;
37  virtual void stopping_threads(int count) = 0;
38 
39  virtual void creating_session_for(int socket_handle) = 0;
40  virtual void creating_socket_pair(int server_handle, int client_handle) = 0;
41 
42  virtual void listening_on(std::string const& endpoint) = 0;
43 
44  virtual void error(std::exception const& error) = 0;
45 
46 protected:
47  virtual ~ConnectorReport() = default;
48  ConnectorReport() = default;
49  ConnectorReport(const ConnectorReport&) = delete;
50  ConnectorReport& operator=(const ConnectorReport&) = delete;
51 };
52 
53 }
54 }
55 
56 #endif // MIR_FRONTEND_CONNECTOR_REPORT_H_
All things Mir.
Definition: buffer_stream.h:37
virtual void stopping_threads(int count)=0
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 starting_threads(int count)=0
virtual void listening_on(std::string const &endpoint)=0

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