Mir
event_sink_factory.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2015 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU 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 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: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
17  */
18 
19 #ifndef MIR_FRONTEND_EVENT_SINK_FACTORY_H_
20 #define MIR_FRONTEND_EVENT_SINK_FACTORY_H_
21 
22 #include <memory>
23 
24 namespace mir
25 {
26 namespace frontend
27 {
28 class EventSink;
29 class MessageSender;
30 
32 {
33 public:
34  EventSinkFactory() = default;
35  virtual ~EventSinkFactory() = default;
36 
37  EventSinkFactory(EventSinkFactory const&) = delete;
39 
40  virtual std::unique_ptr<EventSink>
41  create_sink(std::shared_ptr<MessageSender> const& sender) = 0;
42 };
43 
44 }
45 }
46 
47 #endif //MIR_FRONTEND_EVENT_SINK_FACTORY_H_
All things Mir.
Definition: atomic_callback.h:25
EventSinkFactory & operator=(EventSinkFactory const &)=delete
Definition: event_sink_factory.h:31
virtual ~EventSinkFactory()=default
virtual std::unique_ptr< EventSink > create_sink(std::shared_ptr< MessageSender > const &sender)=0

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