Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
input-monitor-config.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Contact: Pawel Broda <p.broda@partner.samsung.com>
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License
17  */
18 
26 #ifndef SERVER_INPUT_MONITOR_CONFIG_HPP
27 #define SERVER_INPUT_MONITOR_CONFIG_HPP
28 
29 
30 #include "cargo/fields.hpp"
31 
32 #include <string>
33 
34 
35 namespace vasum {
36 
37 struct InputConfig {
38 
42  bool enabled;
43 
48  std::string device;
49 
53  int code;
54 
59 
64 
66  (
67  enabled,
68  device,
69  code,
72  )
73 
74 };
75 
76 } // namespace vasum
77 
78 #endif /* SERVER_INPUT_MONITOR_CONFIG_HPP */
Definition: input-monitor-config.hpp:37
int timeWindowMs
Time window in which subsequent events will trigger an action.
Definition: input-monitor-config.hpp:63
int code
Event code.
Definition: input-monitor-config.hpp:53
std::string device
Device name or an absolute device file path (must be a string starting with '/' character) ...
Definition: input-monitor-config.hpp:48
bool enabled
Is monitoring input enabled?
Definition: input-monitor-config.hpp:42
#define CARGO_REGISTER(...)
Registers cargo fields within class.
Definition: fields.hpp:74
int numberOfEvents
Number of events that will trigger an action.
Definition: input-monitor-config.hpp:58