diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-07-31 17:06:50 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-07-31 17:06:50 -0500 |
commit | 8afa4ba3102138f245fba704eba03b907edefa2b (patch) | |
tree | eb5146377847db4edf2063818c0e962fe325d4dd /src/snap.cpp | |
parent | 4148750ea93e67e5d9aaa15ebc8e3c7a5a5554f1 (diff) | |
download | ayatana-indicator-datetime-8afa4ba3102138f245fba704eba03b907edefa2b.tar.gz ayatana-indicator-datetime-8afa4ba3102138f245fba704eba03b907edefa2b.tar.bz2 ayatana-indicator-datetime-8afa4ba3102138f245fba704eba03b907edefa2b.zip |
configurable haptic mode, part 2 of 3: use the new haptic mode setting when popping up notifications; sync notification tests
Diffstat (limited to 'src/snap.cpp')
-rw-r--r-- | src/snap.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/snap.cpp b/src/snap.cpp index beefa94..0b2322a 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -78,7 +78,10 @@ public: auto sound = std::make_shared<uin::Sound>(uri, volume, loop); // create the haptic feedback... - auto haptic = std::make_shared<uin::Haptic>(); + const auto haptic_mode = m_settings->alarm_haptic.get(); + std::shared_ptr<uin::Haptic> haptic; + if (haptic_mode == "pulse") + haptic = std::make_shared<uin::Haptic>(uin::Haptic::MODE_PULSE); // show a notification... const auto minutes = std::chrono::minutes(m_settings->alarm_duration.get()); |