aboutsummaryrefslogtreecommitdiff
path: root/include/datetime
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-02-01 18:07:18 -0600
committerRobert Tari <robert@tari.in>2021-06-30 15:01:54 +0200
commit0b4ad877e1a5b083eda5c31227e476d969d00925 (patch)
tree0ac5b0d94a05eae12c1a54a283a2a7554b30ffe4 /include/datetime
parentb4ff1a2458802e3238d952c69f9dd664f013137b (diff)
downloadayatana-indicator-datetime-0b4ad877e1a5b083eda5c31227e476d969d00925.tar.gz
ayatana-indicator-datetime-0b4ad877e1a5b083eda5c31227e476d969d00925.tar.bz2
ayatana-indicator-datetime-0b4ad877e1a5b083eda5c31227e476d969d00925.zip
in LiveSettings, add gschema support for notification app blacklisting
Diffstat (limited to 'include/datetime')
-rw-r--r--include/datetime/settings-live.h8
-rw-r--r--include/datetime/settings-shared.h3
2 files changed, 9 insertions, 2 deletions
diff --git a/include/datetime/settings-live.h b/include/datetime/settings-live.h
index ccf7122..330b8e8 100644
--- a/include/datetime/settings-live.h
+++ b/include/datetime/settings-live.h
@@ -38,8 +38,10 @@ public:
virtual ~LiveSettings();
private:
- static void on_changed(GSettings*, gchar*, gpointer);
- void update_key(const std::string& key);
+ static void on_changed_ccid(GSettings*, gchar*, gpointer);
+ static void on_changed_cunh(GSettings*, gchar*, gpointer);
+ void update_key_ccid(const std::string& key);
+ void update_key_cunh(const std::string& key);
void update_custom_time_format();
void update_locations();
@@ -60,8 +62,10 @@ private:
void update_alarm_duration();
void update_alarm_haptic();
void update_snooze_duration();
+ void update_muted_apps();
GSettings* m_settings;
+ GSettings* m_settings_cunh;
// 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 bd84a2d..f385e7a 100644
--- a/include/datetime/settings-shared.h
+++ b/include/datetime/settings-shared.h
@@ -51,4 +51,7 @@ TimeFormatMode;
#define SETTINGS_ALARM_HAPTIC_S "alarm-haptic-feedback"
#define SETTINGS_SNOOZE_DURATION_S "snooze-duration-minutes"
+#define SETTINGS_CUNH_SCHEMA_ID "com.lomiri.notifications.hub"
+#define SETTINGS_CUNH_BLACKLIST_S "blacklist"
+
#endif // INDICATOR_DATETIME_SETTINGS_SHARED