~robertcarr/mir/client-focus-notifications

« back to all changes in this revision

Viewing changes to src/server/frontend/event_sender.h

  • Committer: Robert Carr
  • Date: 2013-08-01 22:01:20 UTC
  • mfrom: (706.2.208 trunk)
  • Revision ID: robert.carr@canonical.com-20130801220120-6m230b3g6x0xflzd
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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:
 
17
 *   Kevin DuBois <kevin.dubois@canonical.com>
 
18
 */
 
19
#ifndef MIR_FRONTEND_EVENT_SENDER_H_
 
20
#define MIR_FRONTEND_EVENT_SENDER_H_
 
21
 
 
22
#include "mir/frontend/event_sink.h"
 
23
#include <memory>
 
24
 
 
25
namespace mir
 
26
{
 
27
namespace frontend
 
28
{
 
29
namespace detail
 
30
{
 
31
class MessageSender;
 
32
 
 
33
class EventSender : public  mir::frontend::EventSink
 
34
{
 
35
public:
 
36
    explicit EventSender(std::shared_ptr<MessageSender> const& socket_sender);
 
37
    void handle_event(MirEvent const& e);
 
38
 
 
39
private:
 
40
    std::shared_ptr<MessageSender> const sender;
 
41
};
 
42
 
 
43
}
 
44
}
 
45
}
 
46
#endif /* MIR_FRONTEND_EVENT_SENDER_H_ */