#define HILDON_OSSO_URI_ACTION "uri-action"
#define URI_ACTION_COPY "copy:"
#define MODEST_NOTIFICATION_CATEGORY "email-message"
#define HILDON_OSSO_URI_ACTION "uri-action"
#define URI_ACTION_COPY "copy:"
#define MODEST_NOTIFICATION_CATEGORY "email-message"
#ifdef MODEST_USE_PROFILE
#define PROFILE_MAIL_TONE PROFILEKEY_EMAIL_ALERT_TONE
#define PROFILE_MAIL_VOLUME PROFILEKEY_EMAIL_ALERT_VOLUME
#ifdef MODEST_USE_PROFILE
#define PROFILE_MAIL_TONE PROFILEKEY_EMAIL_ALERT_TONE
#define PROFILE_MAIL_VOLUME PROFILEKEY_EMAIL_ALERT_VOLUME
/* Delete any existing alarm, because we will replace it: */
alarm_cookies = alarmd_event_query (0,0, 0,0, MODEST_ALARMD_APPID);
if (alarm_cookies) {
/* Delete any existing alarm, because we will replace it: */
alarm_cookies = alarmd_event_query (0,0, 0,0, MODEST_ALARMD_APPID);
if (alarm_cookies) {
alarmd_event_del (*alarm_cookies);
}
modest_conf_set_int (conf, MODEST_CONF_ALARM_ID, 0, NULL);
alarmd_event_del (*alarm_cookies);
}
modest_conf_set_int (conf, MODEST_CONF_ALARM_ID, 0, NULL);
* (The old maemo email-client did this, though it isn't specified in the UI spec.)
* ALARM_EVENT_CONNECTED will prevent the alarm from being called in case that the device is offline
*/
* (The old maemo email-client did this, though it isn't specified in the UI spec.)
* ALARM_EVENT_CONNECTED will prevent the alarm from being called in case that the device is offline
*/
if (notify_notification_show (NOTIFY_NOTIFICATION (notification), NULL)) {
GSList *notifications_list = NULL;
if (notify_notification_show (NOTIFY_NOTIFICATION (notification), NULL)) {
GSList *notifications_list = NULL;
{
gboolean stop_trying = FALSE;
g_return_val_if_fail (data && data->account, FALSE);
{
gboolean stop_trying = FALSE;
g_return_val_if_fail (data && data->account, FALSE);
if (data && data->account &&
/* We want to wait until TNY_CONNECTION_STATUS_INIT has changed to something else,
* after which the account is likely to be usable, or never likely to be usable soon: */
(tny_account_get_connection_status (data->account) != TNY_CONNECTION_STATUS_INIT) )
{
data->is_online = TRUE;
if (data && data->account &&
/* We want to wait until TNY_CONNECTION_STATUS_INIT has changed to something else,
* after which the account is likely to be usable, or never likely to be usable soon: */
(tny_account_get_connection_status (data->account) != TNY_CONNECTION_STATUS_INIT) )
{
data->is_online = TRUE;
if (stop_trying) {
/* Allow the function that requested this idle callback to continue: */
if (data->loop)
g_main_loop_quit (data->loop);
if (stop_trying) {
/* Allow the function that requested this idle callback to continue: */
if (data->loop)
g_main_loop_quit (data->loop);