From ea5f8163231a81e4f0769a518db819c8a1fc78f6 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Wed, 17 Nov 2021 10:19:43 +0100 Subject: Re-enable haptic using hfd-service fixes https://github.com/AyatanaIndicators/ayatana-indicator-datetime/issues/67 --- include/notifications/dbus-shared.h | 7 +++---- include/notifications/haptic.h | 8 +++----- 2 files changed, 6 insertions(+), 9 deletions(-) (limited to 'include/notifications') diff --git a/include/notifications/dbus-shared.h b/include/notifications/dbus-shared.h index ea47328..931667e 100644 --- a/include/notifications/dbus-shared.h +++ b/include/notifications/dbus-shared.h @@ -31,9 +31,8 @@ #define BUS_POWERD_PATH "/com/lomiri/Repowerd" #define BUS_POWERD_INTERFACE "com.lomiri.Repowerd" -//TODO: Reimplement using hfd-service -//#define BUS_HAPTIC_NAME "" -//#define BUS_HAPTIC_PATH "" -//#define BUS_HAPTIC_INTERFACE "" +#define BUS_HAPTIC_NAME "com.lomiri.hfd" +#define BUS_HAPTIC_PATH "/com/lomiri/hfd" +#define BUS_HAPTIC_INTERFACE "com.lomiri.hfd.Vibrator" #endif /* INDICATOR_NOTIFICATIONS_DBUS_SHARED_H */ diff --git a/include/notifications/haptic.h b/include/notifications/haptic.h index 2f4008a..ccf5298 100644 --- a/include/notifications/haptic.h +++ b/include/notifications/haptic.h @@ -1,5 +1,6 @@ /* * Copyright 2014 Canonical Ltd. + * Copyright 2021 Robert Tari * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published @@ -15,6 +16,7 @@ * * Authors: * Charles Kerr + * Robert Tari */ #ifndef AYATANA_INDICATOR_NOTIFICATIONS_HAPTIC_H @@ -36,12 +38,8 @@ namespace notifications { class Haptic { public: - enum Mode - { - MODE_PULSE - }; - explicit Haptic(const Mode& mode = MODE_PULSE, bool repeat = false); + explicit Haptic(bool repeat = false); ~Haptic(); private: -- cgit v1.2.3