Mir
android_input_channel.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 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: Robert Carr <robert.carr@canonical.com>
17  */
18 
19 #ifndef MIR_INPUT_ANDROID_INPUT_CHANNEL_H_
20 #define MIR_INPUT_ANDROID_INPUT_CHANNEL_H_
21 
23 
24 namespace android
25 {
26 class InputChannel;
27 }
28 
29 namespace droidinput = android;
30 
31 namespace mir
32 {
33 namespace input
34 {
35 namespace android
36 {
37 
39 {
40 public:
41  explicit AndroidInputChannel();
42  virtual ~AndroidInputChannel();
43 
44  int client_fd() const;
45  int server_fd() const;
46 
47 protected:
50 
51 private:
52  int s_fd, c_fd;
53 };
54 
55 }
56 }
57 } // namespace mir
58 
59 #endif // MIR_INPUT_ANDROID_INPUT_CHANNEL_H_
Encapsulates a paired set of fd's suitable for input communication.
Definition: input_channel.h:28
All things Mir.
Definition: buffer_stream.h:37
Definition: android_input_channel.h:38
AndroidInputChannel & operator=(AndroidInputChannel const &)=delete
Definition: android_input_receiver.h:32

Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015