aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-11-18 14:43:06 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-11-18 14:43:06 +0100
commitb3e4cbdde1444b134d8b2729f3abcee405ca1241 (patch)
tree3bc2775ba0106e6c39bc8a129d6789d00c3bf841 /include
parentdc16358bcceeb687df7f0a37fdcd3593844dcc7e (diff)
parentea5f8163231a81e4f0769a518db819c8a1fc78f6 (diff)
downloadayatana-indicator-datetime-b3e4cbdde1444b134d8b2729f3abcee405ca1241.tar.gz
ayatana-indicator-datetime-b3e4cbdde1444b134d8b2729f3abcee405ca1241.tar.bz2
ayatana-indicator-datetime-b3e4cbdde1444b134d8b2729f3abcee405ca1241.zip
Merge branch 'tari01-pr/enable-hfd-service-haptic'
Attributes GH PR #78: https://github.com/AyatanaIndicators/ayatana-indicator-datetime/pull/78
Diffstat (limited to 'include')
-rw-r--r--include/notifications/dbus-shared.h7
-rw-r--r--include/notifications/haptic.h8
2 files changed, 6 insertions, 9 deletions
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 <charles.kerr@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
#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: