2
* @file testsuite/geis2/gtest_evemu_device.h
3
* @brief OO wrapper for a evemu device
6
* Copyright 2012 Canonical Ltd.
8
* This library is free software; you can redistribute it and/or modify it under
9
* the terms of the GNU Lesser General Public License as published by the Free
10
* Software Foundation; either version 3 of the License, or (at your option) any
13
* This library is distributed in the hope that it will be useful, but WITHOUT
14
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
#ifndef TESTSUITE_GEIS2_GTEST_EVEMU_DEVICE_H_
22
#define TESTSUITE_GEIS2_GTEST_EVEMU_DEVICE_H_
37
* Creates a wrapped evemu pseudodevice.
38
* @param[in] propFilename Names the evemy device properties file.
40
* @throws std::runtime_error on any failure.
42
EvemuDevice(const std::string& propFileName);
46
* Gets the name of the device.
52
* Plays a named evemu events fil on the wrapped device.
53
* @param[in] eventsFilename Names the events file.
55
* @throws std::runtime_error on any failure.
58
play(const std::string& eventsFileName);
61
evemu_device* evemu_device_;
65
} // namespace Testsuite
67
#endif // TESTSUITE_GEIS2_GTEST_EVEMU_DEVICE_H_