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
58
int
numberOfEvents
;
59
63
int
timeWindowMs
;
64
65
CARGO_REGISTER
66
(
67
enabled
,
68
device
,
69
code
,
70
numberOfEvents
,
71
timeWindowMs
72
)
73
74
};
75
76
}
// namespace vasum
77
78
#endif
/* SERVER_INPUT_MONITOR_CONFIG_HPP */
vasum::InputConfig
Definition:
input-monitor-config.hpp:37
vasum::InputConfig::timeWindowMs
int timeWindowMs
Time window in which subsequent events will trigger an action.
Definition:
input-monitor-config.hpp:63
vasum::InputConfig::code
int code
Event code.
Definition:
input-monitor-config.hpp:53
vasum::InputConfig::device
std::string device
Device name or an absolute device file path (must be a string starting with '/' character) ...
Definition:
input-monitor-config.hpp:48
vasum::InputConfig::enabled
bool enabled
Is monitoring input enabled?
Definition:
input-monitor-config.hpp:42
CARGO_REGISTER
#define CARGO_REGISTER(...)
Registers cargo fields within class.
Definition:
fields.hpp:74
vasum::InputConfig::numberOfEvents
int numberOfEvents
Number of events that will trigger an action.
Definition:
input-monitor-config.hpp:58
fields.hpp
server
input-monitor-config.hpp
Generated on Fri Dec 4 2015 11:36:48 for Vasum by
1.8.6