From 4a6ec712275b179decd1844232dce44bc9f9dc19 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 8 Dec 2017 10:37:30 +0000 Subject: Many more C++ namespace name changes (unity -> ayatana). --- src/snap.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/snap.cpp') diff --git a/src/snap.cpp b/src/snap.cpp index 9beb379..58ebd3b 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -37,7 +37,7 @@ #include // getuid() #include // getuid() -namespace uin = unity::indicator::notifications; +namespace ain = ayatana::indicator::notifications; namespace ayatana { namespace indicator { @@ -51,7 +51,7 @@ class Snap::Impl { public: - Impl(const std::shared_ptr& engine, + Impl(const std::shared_ptr& engine, const std::shared_ptr& settings): m_engine(engine), m_settings(settings), @@ -90,33 +90,33 @@ public: const bool interactive = appointment.is_ubuntu_alarm() && m_engine->supports_actions(); // force the system to stay awake - auto awake = std::make_shared(m_engine->app_name()); + auto awake = std::make_shared(m_engine->app_name()); // calendar events are muted in silent mode; alarm clocks never are - std::shared_ptr sound; + std::shared_ptr sound; if (appointment.is_ubuntu_alarm() || !silent_mode()) { // create the sound. const auto role = appointment.is_ubuntu_alarm() ? "alarm" : "alert"; const auto uri = get_alarm_uri(alarm, m_settings); const auto volume = m_settings->alarm_volume.get(); const bool loop = interactive; - sound = std::make_shared(role, uri, volume, loop); + sound = std::make_shared(role, uri, volume, loop); } // create the haptic feedback... - std::shared_ptr haptic; + std::shared_ptr haptic; if (should_vibrate()) { const auto haptic_mode = m_settings->alarm_haptic.get(); if (haptic_mode == "pulse") - haptic = std::make_shared(uin::Haptic::MODE_PULSE); + haptic = std::make_shared(ain::Haptic::MODE_PULSE); } // show a notification... const auto minutes = std::chrono::minutes(m_settings->alarm_duration.get()); - uin::Builder b; + ain::Builder b; b.set_body (appointment.summary); b.set_icon_name ("alarm-clock"); - b.add_hint (uin::Builder::HINT_NONSHAPED_ICON); + b.add_hint (ain::Builder::HINT_NONSHAPED_ICON); const char * timefmt; if (is_locale_12h()) { @@ -134,8 +134,8 @@ public: g_free (title); b.set_timeout (std::chrono::duration_cast(minutes)); if (interactive) { - b.add_hint (uin::Builder::HINT_SNAP); - b.add_hint (uin::Builder::HINT_AFFIRMATIVE_HINT); + b.add_hint (ain::Builder::HINT_SNAP); + b.add_hint (ain::Builder::HINT_AFFIRMATIVE_HINT); b.add_action ("ok", _("OK")); b.add_action ("snooze", _("Snooze")); } -- cgit v1.2.3