blob: bb2d3360f105dd54aaa80636e174dd97029e10a2 [file] [log] [blame]
Paul Keith5b3bd862019-01-08 23:45:03 +01001/*
2 * Copyright (C) 2019 The LineageOS Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef VENDOR_LINEAGE_TOUCH_V1_0_TOUCHSCREENGESTURE_H
18#define VENDOR_LINEAGE_TOUCH_V1_0_TOUCHSCREENGESTURE_H
19
20#include <vendor/lineage/touch/1.0/ITouchscreenGesture.h>
21#include <hidl/MQDescriptor.h>
22#include <hidl/Status.h>
23
24namespace vendor {
25namespace lineage {
26namespace touch {
27namespace V1_0 {
28namespace implementation {
29
30using ::android::hardware::hidl_array;
31using ::android::hardware::hidl_memory;
32using ::android::hardware::hidl_string;
33using ::android::hardware::hidl_vec;
34using ::android::hardware::Return;
35using ::android::hardware::Void;
36using ::android::sp;
37
38struct TouchscreenGesture : public ITouchscreenGesture {
39 // Methods from ::vendor::lineage::touch::V1_0::ITouchscreenGesture follow.
40 Return<void> getSupportedGestures(getSupportedGestures_cb _hidl_cb) override;
41 Return<void> setGestureEnabled(const ::vendor::lineage::touch::V1_0::Gesture& gesture, bool enabled) override;
42
43 // Methods from ::android::hidl::base::V1_0::IBase follow.
44
45};
46
47// FIXME: most likely delete, this is only for passthrough implementations
48// extern "C" ITouchscreenGesture* HIDL_FETCH_ITouchscreenGesture(const char* name);
49
50} // namespace implementation
51} // namespace V1_0
52} // namespace touch
53} // namespace lineage
54} // namespace vendor
55
56#endif // VENDOR_LINEAGE_TOUCH_V1_0_TOUCHSCREENGESTURE_H