~mir-team/mir/trunk

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2013-04-25 23:50:01 UTC
  • mfrom: (526.2.22 mir1)
  • Revision ID: tarmac-20130425235001-c3b3x2yyb3eldyx1
frontend, shell, tests: surface-states updated to avoid supplying dependencies through public member functions.

Approved by PS Jenkins bot, Chris Halse Rogers, Robert Ancell, Kevin DuBois.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Authored by: Daniel van Vugt <daniel.van.vugt@canonical.com>
17
17
 */
18
18
 
19
 
#ifndef MIR_EVENT_QUEUE_H_
20
 
#define MIR_EVENT_QUEUE_H_
 
19
#ifndef MIR_FRONTEND_EVENT_PIPE_H_
 
20
#define MIR_FRONTEND_EVENT_PIPE_H_
21
21
 
22
22
#include "mir_toolkit/event.h"
23
 
#include "mir/event_sink.h"
 
23
#include "mir/events/event_sink.h"
24
24
#include <memory>
25
25
 
26
26
namespace mir
27
27
{
28
 
class EventQueue : public EventSink
 
28
namespace frontend
 
29
{
 
30
class EventPipe : public events::EventSink
29
31
{
30
32
public:
31
 
    void set_target(std::weak_ptr<EventSink> const& s);
 
33
    void set_target(std::weak_ptr<events::EventSink> const& s);
32
34
    void handle_event(MirEvent const& e) override;
33
35
 
34
36
private:
35
 
    std::weak_ptr<EventSink> target;
 
37
    std::weak_ptr<events::EventSink> target;
36
38
};
37
 
 
38
 
} // namespace mir
39
 
 
40
 
#endif
 
39
}
 
40
}
 
41
 
 
42
#endif // MIR_FRONTEND_EVENT_PIPE_H_