From: Enrico Zini Date: Sun, 28 Mar 2010 15:22:59 +0000 (+0100) Subject: Added config options for call and sms ringtones X-Git-Url: https://git.toastfreeware.priv.at/gregoa/zavai.git/commitdiff_plain/80776da1373617525043b0c3c5978dbd90a4b303 Added config options for call and sms ringtones --- diff --git a/README b/README index 3256c08..b725eb8 100644 --- a/README +++ b/README @@ -195,9 +195,11 @@ using vala-dbus-binding-tool: "SYNC" button that will sync it if pressed + stacked notifier, with stacked modal dialogs (notify sms received during phone ringing during alarm) - - aux acks the topmost dialog + + aux acks the topmost dialog + custom ringtone per every notifier (stops ringtone of modifier below, saving the time offset of playing so it can be reloaded and resumed) + - notify sms + - notify incoming call - log - flash aux when there are unacknowledged log entries - write data to disk as log happens (to have at least partial logs if power diff --git a/src/config.vala b/src/config.vala index c2a0e56..92f8f93 100644 --- a/src/config.vala +++ b/src/config.vala @@ -152,6 +152,20 @@ public class Config set { _ringtone_alarm = set_string("ringtone_alarm", value); } } + private string _ringtone_call; + public string ringtone_call + { + get { return _ringtone_call; } + set { _ringtone_call = set_string("ringtone_call", value); } + } + + private string _ringtone_sms; + public string ringtone_sms + { + get { return _ringtone_sms; } + set { _ringtone_sms = set_string("ringtone_sms", value); } + } + public int backlight_max { get; @@ -194,6 +208,8 @@ public class Config _power_button_keycode = get_int("power_button_keycode"); _aux_button_keycode = get_int("aux_button_keycode"); _ringtone_alarm = get_string("ringtone_alarm"); + _ringtone_call = get_string("ringtone_call"); + _ringtone_sms = get_string("ringtone_sms"); } public Config() @@ -219,6 +235,8 @@ public class Config power_button_keycode = 124; aux_button_keycode = 177; ringtone_alarm = "file:///usr/share/sounds/yue-fso/lec1.ogg"; + ringtone_call = "file:///usr/share/sounds/yue-fso/jmf1.ogg"; + ringtone_sms = "file:///usr/share/sounds/yue-fso/nothing4.ogg"; // Read config if (lua.do_file(homedir + "/config"))