Mir
android_input_platform.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
5  * it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Robert Carr <robert.carr@canonical.com>
17  */
18 
19 #ifndef MIR_CLIENT_ANDROID_INPUT_PLATFORM_H_
20 #define MIR_CLIENT_ANDROID_INPUT_PLATFORM_H_
21 
23 
24 namespace mir
25 {
26 namespace dispatch
27 {
28 class Dispatchable;
29 }
30 namespace input
31 {
32 namespace receiver
33 {
34 namespace android
35 {
36 
39 {
40 public:
41  AndroidInputPlatform(std::shared_ptr<InputReceiverReport> const& report);
42  virtual ~AndroidInputPlatform();
43 
44  std::shared_ptr<dispatch::Dispatchable> create_input_receiver(int fd,
45  std::shared_ptr<XKBMapper> const& mapper,
46  std::function<void(MirEvent*)> const& callback);
47 
48 protected:
51 
52 private:
53  std::shared_ptr<InputReceiverReport> const report;
54 };
55 }
56 }
57 }
58 } // namespace mir
59 
60 #endif // MIR_CLIENT_ANDROID_INPUT_PLATFORM_H_
All things Mir.
Definition: atomic_callback.h:25
std::shared_ptr< dispatch::Dispatchable > create_input_receiver(int fd, std::shared_ptr< XKBMapper > const &mapper, std::function< void(MirEvent *)> const &callback)
Implementation of client input machinery for android input stack wire protocol.
Definition: android_input_platform.h:38
Definition: input_platform.h:42
AndroidInputPlatform(std::shared_ptr< InputReceiverReport > const &report)
Definition: dispatchable.h:38
AndroidInputPlatform & operator=(const AndroidInputPlatform &)=delete
Definition: android_input_receiver.h:36
Definition: event_private.h:178

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