diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-06-24 00:06:04 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-06-24 00:06:04 -0500 |
commit | 373832769c30a950629a4ca9474bd7f5bf03a6b4 (patch) | |
tree | c859a9211aea6c973c75f6846321ac45a08f213a /include | |
parent | 0463fa7657b1aab4a3f5c6e7909ba1513c047968 (diff) | |
download | ayatana-indicator-datetime-373832769c30a950629a4ca9474bd7f5bf03a6b4.tar.gz ayatana-indicator-datetime-373832769c30a950629a4ca9474bd7f5bf03a6b4.tar.bz2 ayatana-indicator-datetime-373832769c30a950629a4ca9474bd7f5bf03a6b4.zip |
add GSettings support for specifying an alarm loop duration
Diffstat (limited to 'include')
-rw-r--r-- | include/datetime/settings-live.h | 1 | ||||
-rw-r--r-- | include/datetime/settings-shared.h | 1 | ||||
-rw-r--r-- | include/datetime/settings.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/include/datetime/settings-live.h b/include/datetime/settings-live.h index a075a85..4db2d40 100644 --- a/include/datetime/settings-live.h +++ b/include/datetime/settings-live.h @@ -57,6 +57,7 @@ private: void update_timezone_name(); void update_alarm_sound(); void update_alarm_volume(); + void update_alarm_duration(); GSettings* m_settings; diff --git a/include/datetime/settings-shared.h b/include/datetime/settings-shared.h index b8d7737..bfddd88 100644 --- a/include/datetime/settings-shared.h +++ b/include/datetime/settings-shared.h @@ -57,5 +57,6 @@ AlarmVolume; #define SETTINGS_TIMEZONE_NAME_S "timezone-name" #define SETTINGS_ALARM_SOUND_S "alarm-default-sound" #define SETTINGS_ALARM_VOLUME_S "alarm-default-volume" +#define SETTINGS_ALARM_DURATION_S "alarm-duration-minutes" #endif // INDICATOR_DATETIME_SETTINGS_SHARED diff --git a/include/datetime/settings.h b/include/datetime/settings.h index 5a0f1eb..a941f05 100644 --- a/include/datetime/settings.h +++ b/include/datetime/settings.h @@ -58,6 +58,7 @@ public: core::Property<std::string> timezone_name; core::Property<std::string> alarm_sound; core::Property<AlarmVolume> alarm_volume; + core::Property<int> alarm_duration; }; } // namespace datetime |