~ubuntu-branches/ubuntu/wily/mir/wily-proposed

« back to all changes in this revision

Viewing changes to include/server/mir/input/input_device_observer.h

  • Committer: Package Import Robot
  • Author(s): Alexandros Frantzis
  • Date: 2015-10-08 16:12:19 UTC
  • mto: This revision was merged to the branch mainline in revision 109.
  • Revision ID: package-import@ubuntu.com-20151008161219-emk4a1ys51yy0wjb
Tags: upstream-0.17.0+15.10.20151008.2
ImportĀ upstreamĀ versionĀ 0.17.0+15.10.20151008.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef MIR_INPUT_INPUT_DEVICE_OBSERVER_H_
20
20
#define MIR_INPUT_INPUT_DEVICE_OBSERVER_H_
21
21
 
 
22
#include <memory>
 
23
 
22
24
namespace mir
23
25
{
24
26
namespace input
25
27
{
26
 
class InputDeviceInfo;
 
28
class Device;
27
29
 
28
30
class InputDeviceObserver
29
31
{
31
33
    InputDeviceObserver() = default;
32
34
    virtual ~InputDeviceObserver() = default;
33
35
 
34
 
    virtual void device_added(InputDeviceInfo const& device) = 0;
35
 
    virtual void device_changed(InputDeviceInfo const& device) = 0;
36
 
    virtual void device_removed(InputDeviceInfo const& device) = 0;
 
36
    virtual void device_added(std::shared_ptr<Device> const& device) = 0;
 
37
    virtual void device_changed(std::shared_ptr<Device> const& device) = 0;
 
38
    virtual void device_removed(std::shared_ptr<Device> const& device) = 0;
37
39
    /*!
38
40
     * Called after every group of changes.
39
41
     */