aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArthur Mello <arthur.mello@canonical.com>2016-07-04 16:30:18 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commitcd03321181ba64c66a93c60d444dfea59f293fa1 (patch)
treea86401e19c0cf30989814021202629aeeba46417 /include
parent94af77abe22cf5fe8845d3d0cd4a9bc2ca5ab38a (diff)
downloadayatana-indicator-datetime-cd03321181ba64c66a93c60d444dfea59f293fa1.tar.gz
ayatana-indicator-datetime-cd03321181ba64c66a93c60d444dfea59f293fa1.tar.bz2
ayatana-indicator-datetime-cd03321181ba64c66a93c60d444dfea59f293fa1.zip
If in silent mode should only vibrate if the settings say so
Diffstat (limited to 'include')
-rw-r--r--include/datetime/settings-live.h4
-rw-r--r--include/datetime/settings-shared.h2
-rw-r--r--include/datetime/settings.h1
3 files changed, 7 insertions, 0 deletions
diff --git a/include/datetime/settings-live.h b/include/datetime/settings-live.h
index 4aeaa9b..85071ce 100644
--- a/include/datetime/settings-live.h
+++ b/include/datetime/settings-live.h
@@ -40,8 +40,10 @@ public:
private:
static void on_changed_ccid(GSettings*, gchar*, gpointer);
static void on_changed_cal_notification(GSettings*, gchar*, gpointer);
+ static void on_changed_general_notification(GSettings*, gchar*, gpointer);
void update_key_ccid(const std::string& key);
void update_key_cal_notification(const std::string& key);
+ void update_key_general_notification(const std::string& key);
void update_custom_time_format();
void update_locations();
@@ -67,9 +69,11 @@ private:
void update_cal_notification_vibrations();
void update_cal_notification_bubbles();
void update_cal_notification_list();
+ void update_vibrate_silent_mode();
GSettings* m_settings;
GSettings* m_settings_cal_notification;
+ GSettings* m_settings_general_notification;
// we've got a raw pointer here, so disable copying
LiveSettings(const LiveSettings&) =delete;
diff --git a/include/datetime/settings-shared.h b/include/datetime/settings-shared.h
index 236b8f1..7280c16 100644
--- a/include/datetime/settings-shared.h
+++ b/include/datetime/settings-shared.h
@@ -51,6 +51,8 @@ TimeFormatMode;
#define SETTINGS_ALARM_HAPTIC_S "alarm-haptic-feedback"
#define SETTINGS_SNOOZE_DURATION_S "snooze-duration-minutes"
+#define SETTINGS_NOTIFY_APPS_SCHEMA_ID "com.lomiri.notifications.settings.applications"
+#define SETTINGS_VIBRATE_SILENT_KEY "vibrate-silent-mode"
#define SETTINGS_NOTIFY_SCHEMA_ID "com.lomiri.notifications.settings"
#define SETTINGS_NOTIFY_CALENDAR_PATH "/com/lomiri/NotificationSettings/com.lomiri.calendar/calendar/"
#define SETTINGS_NOTIFY_ENABLED_KEY "enable-notifications"
diff --git a/include/datetime/settings.h b/include/datetime/settings.h
index 5ae00f6..af9227d 100644
--- a/include/datetime/settings.h
+++ b/include/datetime/settings.h
@@ -66,6 +66,7 @@ public:
core::Property<bool> cal_notification_vibrations;
core::Property<bool> cal_notification_bubbles;
core::Property<bool> cal_notification_list;
+ core::Property<bool> vibrate_silent_mode;
};
} // namespace datetime